Update node info sync comment (#11465)

This commit is contained in:
Will Jordan 2021-11-16 11:16:11 -08:00 committed by GitHub
parent e6956893fb
commit 68efecafed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -1175,6 +1175,9 @@ func (l *State) SyncChanges() error {
defer l.Unlock()
// Sync the node level info if we need to.
// At the start to guarantee sync even if services or checks fail,
// which is more likely because there are more syncs happening for them.
if l.nodeInfoInSync {
l.logger.Debug("Node info in sync")
} else {
@ -1183,10 +1186,6 @@ func (l *State) SyncChanges() error {
}
}
// We will do node-level info syncing at the end, since it will get
// updated by a service or check sync anyway, given how the register
// API works.
// Sync the services
// (logging happens in the helper methods)
for id, s := range l.services {