mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 06:35:07 +01:00
discovery: transit all inactive syncers when needed
This commit is contained in:
parent
2250cb752b
commit
c15c8a1f0b
1 changed files with 7 additions and 0 deletions
|
@ -398,6 +398,13 @@ func (m *SyncManager) syncerHandler() {
|
|||
continue
|
||||
}
|
||||
|
||||
// We may not even have enough inactive syncers to be
|
||||
// transitted. In that case, we will transit all the
|
||||
// inactive syncers.
|
||||
if len(m.inactiveSyncers) < numActiveLeft {
|
||||
numActiveLeft = len(m.inactiveSyncers)
|
||||
}
|
||||
|
||||
log.Debugf("Attempting to transition %v passive "+
|
||||
"GossipSyncers to active", numActiveLeft)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue