mirror of https://github.com/go-redis/redis.git
internal/pool: remove unused var
This commit is contained in:
parent
8040d63c4f
commit
50f5210780
|
@ -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