network: enlarge address request queue
Queuing one message is not reliable enough, the peer that gets it can fail to actually make a request, so make this queue a bit deeper to have a higher chance of success.
This commit is contained in:
parent
d3bb8ddf8f
commit
46dc141c6c
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ func NewServer(config ServerConfig, chain core.Blockchainer) *Server {
|
||||||
chain: chain,
|
chain: chain,
|
||||||
id: rand.Uint32(),
|
id: rand.Uint32(),
|
||||||
quit: make(chan struct{}),
|
quit: make(chan struct{}),
|
||||||
addrReq: make(chan *Message, 1),
|
addrReq: make(chan *Message, minPeers),
|
||||||
register: make(chan Peer),
|
register: make(chan Peer),
|
||||||
unregister: make(chan peerDrop),
|
unregister: make(chan peerDrop),
|
||||||
peers: make(map[Peer]bool),
|
peers: make(map[Peer]bool),
|
||||||
|
|
Loading…
Reference in a new issue