all repos — captcha @ f9f7db1f433c5e6c539629a98e1def6e6be38f79

Go package captcha implements generation and verification of image and audio CAPTCHAs.

Call Collect on a separate goroutine.
Dmitry Chestnykh dmitry@codingrobots.com
Thu, 21 Apr 2011 18:14:28 +0200
commit

f9f7db1f433c5e6c539629a98e1def6e6be38f79

parent

59a641ef537290ef95f17c86cfbce15a8f5f02bc

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M captcha.gocaptcha.go

@@ -73,7 +73,7 @@ store.ids[id] = ns

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