this repo has no description

limit number of ner requests

Changed files
+3 -1
+3 -1
handle_create.go
··· 4 4 "bytes" 5 5 "context" 6 6 "fmt" 7 + "slices" 7 8 "strings" 8 9 "time" 9 10 ··· 130 131 return err 131 132 } 132 133 133 - if rec.Text != "" && p.nervanaClient != nil { 134 + isEn := slices.Contains(rec.Langs, "en") 135 + if rec.Text != "" && rec.Reply == nil && isEn && p.nervanaClient != nil { 134 136 go func(ctx context.Context, rec bsky.FeedPost, did, rkey string) { 135 137 ctx, cancel := context.WithTimeout(ctx, 5*time.Second) 136 138 defer cancel()