discovery: check non-nil syncer upon historical sync tick
This commit is contained in:
parent
51216c6e5e
commit
c405e89197
@ -383,9 +383,10 @@ func (m *SyncManager) syncerHandler() {
|
||||
case <-m.cfg.HistoricalSyncTicker.Ticks():
|
||||
s := m.forceHistoricalSync()
|
||||
|
||||
// If we've already performed our initial historical
|
||||
// sync, then we have nothing left to do.
|
||||
if m.IsGraphSynced() {
|
||||
// If we don't have a syncer available or we've already
|
||||
// performed our initial historical sync, then we have
|
||||
// nothing left to do.
|
||||
if s == nil || m.IsGraphSynced() {
|
||||
continue
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user