Skip to content

Commit

Permalink
cached imported netchan time reduced to a 1.3 factor
Browse files Browse the repository at this point in the history
  • Loading branch information
paulosuzart committed Jul 23, 2011
1 parent 30303ca commit a937be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workers.go
Expand Up @@ -132,7 +132,7 @@ func importMasterChan(t Task) (c chan WorkSummary) {
//A cache watcher function cleans up the cache after
//2 times the session length
func cacheWatcher(session Session) {
time.Sleep(session.Timeout * 2)
time.Sleep(session.Timeout * 1.3)
mu.Lock()
log.Printf("Cleanning up Session %v", session.Id)
_sessions[session.Id] = _sessions[session.Id], false
Expand Down

0 comments on commit a937be2

Please sign in to comment.