Remove network requirement on start

This commit is contained in:
世界 2023-11-03 00:35:23 +08:00
parent efd9884154
commit b93db9639d
No known key found for this signature in database
GPG key ID: CD109927C34A63C4

View file

@ -65,10 +65,7 @@ func NewDefaultInterfaceMonitor(networkMonitor NetworkUpdateMonitor, logger logg
}
func (m *defaultInterfaceMonitor) Start() error {
err := m.checkUpdate()
if err != nil {
m.logger.Error("initialize default interface: ", err)
}
_ = m.checkUpdate()
m.element = m.networkMonitor.RegisterCallback(m.delayCheckUpdate)
return nil
}