chore(network): fix linting error errcheck

This commit is contained in:
Siyuan Miao 2025-07-11 11:30:02 +02:00
parent 4a23f22a55
commit ab3dda6dee
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