瀏覽代碼

Call Collect on a separate goroutine.

Dmitry Chestnykh 15 年之前
父節點
當前提交
f9f7db1f43
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      captcha.go

+ 1 - 1
captcha.go

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