mirror of https://github.com/hashicorp/consul
address review comments
parent
61ca9b02d4
commit
1781fd311f
|
@ -24,12 +24,11 @@ func (t *SessionTimers) Get(id string) *time.Timer {
|
|||
}
|
||||
|
||||
// Set stores the timer under given id. If tm is nil the timer
|
||||
// witht the given id is removed.
|
||||
// with the given id is removed.
|
||||
func (t *SessionTimers) Set(id string, tm *time.Timer) {
|
||||
t.Lock()
|
||||
defer t.Unlock()
|
||||
if tm == nil {
|
||||
// todo(fs): shouldn't we call Stop() here?
|
||||
delete(t.m, id)
|
||||
} else {
|
||||
t.m[id] = tm
|
||||
|
|
|
@ -28,7 +28,7 @@ type syncStatus struct {
|
|||
}
|
||||
|
||||
// localStateConfig is the configuration for the localState. It is
|
||||
// popuplated during NewLocalAgent from the agent configuration to avoid
|
||||
// populated during NewLocalAgent from the agent configuration to avoid
|
||||
// race conditions with the agent configuration.
|
||||
type localStateConfig struct {
|
||||
ACLToken string
|
||||
|
|
Loading…
Reference in New Issue