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():
|
case <-m.cfg.HistoricalSyncTicker.Ticks():
|
||||||
s := m.forceHistoricalSync()
|
s := m.forceHistoricalSync()
|
||||||
|
|
||||||
// If we've already performed our initial historical
|
// If we don't have a syncer available or we've already
|
||||||
// sync, then we have nothing left to do.
|
// performed our initial historical sync, then we have
|
||||||
if m.IsGraphSynced() {
|
// nothing left to do.
|
||||||
|
if s == nil || m.IsGraphSynced() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user