Adds timing measurement to handleSync to help diagnose sync performance issues

This commit is contained in:
Zoltán Papp
2026-02-01 00:12:11 +01:00
parent 0c990ab662
commit a33f60e3fd

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()