mirror of https://github.com/jetkvm/kvm.git
chore(network): fix linting error errcheck
This commit is contained in:
parent
fd3ceb182c
commit
96f27e1f9b
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue