Merge pull request from go-redis/fix/unused-var

internal/pool: remove unused var
This commit is contained in:
Vladimir Mihailenco 2017-02-23 16:25:28 +03:00 committed by GitHub
commit 6dfa30adb8
1 changed files with 0 additions and 16 deletions
internal/pool

View File

@ -332,19 +332,3 @@ func (p *ConnPool) reaper(frequency time.Duration) {
) )
} }
} }
//------------------------------------------------------------------------------
var idleCheckFrequency atomic.Value
func SetIdleCheckFrequency(d time.Duration) {
idleCheckFrequency.Store(d)
}
func getIdleCheckFrequency() time.Duration {
v := idleCheckFrequency.Load()
if v == nil {
return time.Minute
}
return v.(time.Duration)
}