Skip to content

Commit

Permalink
increase delete buffer size in userset
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Sep 15, 2015
1 parent 53a8a02 commit 1978b98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userset.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (us *TimedUserSet) updateUserHash(tick <-chan time.Time) {
now := time.Now().UTC()
lastSec := now.Unix() - cacheDurationSec

hash2Remove := make(chan hashEntry, cacheDurationSec*2*len(us.validUserIds))
hash2Remove := make(chan hashEntry, cacheDurationSec*3*len(us.validUserIds))
lastSec2Remove := now.Unix()
for {
now := <-tick
Expand Down

0 comments on commit 1978b98

Please sign in to comment.