Procházet zdrojové kódy

Call Collect on a separate goroutine.

Dmitry Chestnykh před 15 roky
rodič
revize
f9f7db1f43
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      captcha.go

+ 1 - 1
captcha.go

@@ -73,7 +73,7 @@ func New() string {
 	store.exp.PushBack(expValue{time.Seconds(), id})
 	store.exp.PushBack(expValue{time.Seconds(), id})
 	store.colNum++
 	store.colNum++
 	if store.colNum > CollectNum {
 	if store.colNum > CollectNum {
-		Collect()
+		go Collect()
 		store.colNum = 0
 		store.colNum = 0
 	}
 	}
 	return id
 	return id