From fc894622360206012f655255962d617e37367b19 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Fri, 12 Dec 2014 19:17:35 -0800 Subject: [PATCH] consul: Make sessionTimersLock a plain mutex --- consul/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/server.go b/consul/server.go index f14dc2aa11..90865fb534 100644 --- a/consul/server.go +++ b/consul/server.go @@ -132,7 +132,7 @@ type Server struct { // a TTL. On expiration, a SessionDestroy event will occur, and // destroy the session via standard session destory processing sessionTimers map[string]*time.Timer - sessionTimersLock sync.RWMutex + sessionTimersLock sync.Mutex shutdown bool shutdownCh chan struct{}