mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 09:23:48 +00:00
Revert "p2p: HACK! put the dialtask directly in the queue"
This reverts commit 955a90c1dc.
This commit is contained in:
parent
405d416ad3
commit
331e154f9a
1 changed files with 1 additions and 4 deletions
|
|
@ -526,10 +526,7 @@ running:
|
||||||
// ephemeral static peer list. Add it to the dialer,
|
// ephemeral static peer list. Add it to the dialer,
|
||||||
// it will keep the node connected.
|
// it will keep the node connected.
|
||||||
srv.log.Debug("Adding static node", "node", n)
|
srv.log.Debug("Adding static node", "node", n)
|
||||||
// FIXME: this is a hack, redial does not work
|
dialstate.addStatic(n)
|
||||||
// in simulations if addstatic is used
|
|
||||||
// dialstate.addStatic(n)
|
|
||||||
queuedTasks = append(queuedTasks, &dialTask{flags: staticDialedConn, dest: n})
|
|
||||||
case n := <-srv.removestatic:
|
case n := <-srv.removestatic:
|
||||||
// This channel is used by RemovePeer to send a
|
// This channel is used by RemovePeer to send a
|
||||||
// disconnect request to a peer and begin the
|
// disconnect request to a peer and begin the
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue