File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -944,9 +944,8 @@ func (p *PubSub) handlePendingPeers() {
944944 }
945945
946946 rpcQueue := newRpcQueue (p .peerOutboundQueueSize )
947- rpcQueue .Push (p .getHelloPacket (), true )
948- go p .handleNewPeer (p .ctx , pid , rpcQueue )
949947 p .peers [pid ] = rpcQueue
948+ go p .handleNewPeer (p .ctx , pid , rpcQueue )
950949 }
951950}
952951
@@ -991,7 +990,6 @@ func (p *PubSub) handleDeadPeers() {
991990 // we respawn the writer as we need to ensure there is a stream active
992991 p .logger .Debug ("peer declared dead but still connected; respawning writer" , "peer" , pid )
993992 rpcQueue := newRpcQueue (p .peerOutboundQueueSize )
994- rpcQueue .Push (p .getHelloPacket (), true )
995993 p .peers [pid ] = rpcQueue
996994 go p .handleNewPeerWithBackoff (p .ctx , pid , backoffDelay , rpcQueue )
997995 }
You can’t perform that action at this time.
0 commit comments