address review comments

pull/3241/head
Frank Schroeder 2017-07-07 09:18:33 +02:00 committed by Frank Schröder
parent 61ca9b02d4
commit 1781fd311f
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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