Skip to content

Commit

Permalink
ensure peers second
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed Jun 22, 2024
1 parent 79021c2 commit c72fd6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion p2p/pex/pex_reactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const (
maxMsgSize = maxAddressSize * maxGetSelection

// ensure we have enough peers
defaultEnsurePeersPeriod = 30 * time.Second
defaultEnsurePeersPeriod = 1 * time.Second

// Seed/Crawler constants

Expand Down Expand Up @@ -493,6 +493,8 @@ func (r *Reactor) ensurePeers() {
toDial[try.ID] = try
}

fmt.Println("toDial", toDial)

// Dial picked addresses
for _, addr := range toDial {
go func(addr *p2p.NetAddress) {
Expand Down

0 comments on commit c72fd6d

Please sign in to comment.