mirror of https://github.com/jetkvm/kvm.git
chore(network): fix linting error errcheck
This commit is contained in:
parent
4a23f22a55
commit
ab3dda6dee
|
@ -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