@@ -52,7 +52,7 @@ type localState struct {
52
52
checks map [string ]* structs.HealthCheck
53
53
checkStatus map [string ]syncStatus
54
54
55
- // Used to track checks that are being defered
55
+ // Used to track checks that are being deferred
56
56
deferCheck map [string ]* time.Timer
57
57
58
58
// consulCh is used to inform of a change to the known
@@ -101,13 +101,13 @@ func (l *localState) ConsulServerUp() {
101
101
}
102
102
}
103
103
104
- // Pause is used to pause state syncronization , this can be
104
+ // Pause is used to pause state synchronization , this can be
105
105
// used to make batch changes
106
106
func (l * localState ) Pause () {
107
107
atomic .StoreInt32 (& l .paused , 1 )
108
108
}
109
109
110
- // Resume is used to resume state syncronization
110
+ // Resume is used to resume state synchronization
111
111
func (l * localState ) Resume () {
112
112
atomic .StoreInt32 (& l .paused , 0 )
113
113
l .changeMade ()
@@ -390,7 +390,7 @@ func (l *localState) syncChanges() error {
390
390
return err
391
391
}
392
392
} else if ! status .inSync {
393
- // Cancel a defered sync
393
+ // Cancel a deferred sync
394
394
if timer := l .deferCheck [id ]; timer != nil {
395
395
timer .Stop ()
396
396
delete (l .deferCheck , id )
0 commit comments