mirror of https://github.com/status-im/consul.git
consul: Make sessionTimersLock a plain mutex
This commit is contained in:
parent
a5a9f051cd
commit
fc89462236
|
@ -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{}
|
||||||
|
|
Loading…
Reference in New Issue