chore(network): fix linting error errcheck

This commit is contained in:
Siyuan Miao 2025-07-11 11:30:02 +02:00 committed by Siyuan
parent fd3ceb182c
commit 96f27e1f9b
1 changed files with 3 additions and 1 deletions

View File

@ -24,7 +24,9 @@ func networkStateChanged() {
timeSync.SetDhcpNtpAddresses(networkState.NtpAddressesString())
}
timeSync.Sync()
if err := timeSync.Sync(); err != nil {
networkLogger.Error().Err(err).Msg("failed to sync time after network state change")
}
}
// always restart mDNS when the network state changes