Skip to content

Commit 5a06093

Browse files
authored
Expose DefaultPerPeerRateLimit as var (#1580)
Expose DefaultPerPeerRateLimit as var
1 parent d7ba372 commit 5a06093

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

p2p/net/swarm/swarm_dial.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ const ConcurrentFdDials = 160
6565

6666
// DefaultPerPeerRateLimit is the number of concurrent outbound dials to make
6767
// per peer
68-
const DefaultPerPeerRateLimit = 8
68+
var DefaultPerPeerRateLimit = 8
6969

7070
// dialbackoff is a struct used to avoid over-dialing the same, dead peers.
7171
// Whenever we totally time out on a peer (all three attempts), we add them

0 commit comments

Comments
 (0)