internal/pool: remove unused var

This commit is contained in:
Vladimir Mihailenco 2017-02-23 15:19:43 +02:00
parent 8040d63c4f
commit 50f5210780
1 changed files with 0 additions and 16 deletions

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)
}