Adds timing measurement to handleSync to help diagnose sync performance issues (#5228)

This commit is contained in:
Zoltan Papp
2026-02-06 19:50:48 +01:00
committed by GitHub
parent 3be16d19a0
commit 7bc85107eb

View File

@@ -828,6 +828,10 @@ func (e *Engine) handleAutoUpdateVersion(autoUpdateSettings *mgmProto.AutoUpdate
}
func (e *Engine) handleSync(update *mgmProto.SyncResponse) error {
started := time.Now()
defer func() {
log.Infof("sync finished in %s", time.Since(started))
}()
e.syncMsgMux.Lock()
defer e.syncMsgMux.Unlock()