From 50f52107804d10282d4ec7df76d71b69391ac791 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Thu, 23 Feb 2017 15:19:43 +0200 Subject: [PATCH] internal/pool: remove unused var --- internal/pool/pool.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/internal/pool/pool.go b/internal/pool/pool.go index f89f9b3c..34ec539a 100644 --- a/internal/pool/pool.go +++ b/internal/pool/pool.go @@ -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) -}