mirror of https://github.com/go-redis/redis.git
Merge pull request #510 from go-redis/fix/unused-var
internal/pool: remove unused var
This commit is contained in:
commit
6dfa30adb8
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue