mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
update base peer count to 1
This commit is contained in:
parent
c12bd2f58e
commit
0912d0cd4c
@ -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")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user