mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-01-18 03:28:19 +01:00
chore(network): fix linting error errcheck
This commit is contained in:
@@ -24,7 +24,9 @@ func networkStateChanged() {
|
|||||||
timeSync.SetDhcpNtpAddresses(networkState.NtpAddressesString())
|
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
|
// always restart mDNS when the network state changes
|
||||||
|
|||||||
Reference in New Issue
Block a user