update base peer count to 1 (#513)

This commit is contained in:
winged-pegasus 2026-02-19 18:13:43 -09:00 committed by GitHub
parent c12bd2f58e
commit 15ed550130
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -890,7 +890,7 @@ func (b *BlossomSub) background(ctx context.Context) {
func (b *BlossomSub) checkAndReconnectPeers(ctx context.Context) {
peerCount := len(b.h.Network().Peers())
if peerCount > 0 {
if peerCount > 1 {
return
}
@ -904,7 +904,7 @@ func (b *BlossomSub) checkAndReconnectPeers(ctx context.Context) {
}
newCount := len(b.h.Network().Peers())
if newCount > 0 {
if newCount > 1 {
b.logger.Info("peer reconnect succeeded", zap.Int("peers", newCount))
} else {
b.logger.Warn("peer reconnect: still no peers found, will retry at next interval")