consul: Make sessionTimersLock a plain mutex

This commit is contained in:
Armon Dadgar 2014-12-12 19:17:35 -08:00
parent 9b897d1134
commit f25566931f

View file

@ -132,7 +132,7 @@ type Server struct {
// a TTL. On expiration, a SessionDestroy event will occur, and // a TTL. On expiration, a SessionDestroy event will occur, and
// destroy the session via standard session destory processing // destroy the session via standard session destory processing
sessionTimers map[string]*time.Timer sessionTimers map[string]*time.Timer
sessionTimersLock sync.RWMutex sessionTimersLock sync.Mutex
shutdown bool shutdown bool
shutdownCh chan struct{} shutdownCh chan struct{}