• Felix Lange's avatar
    eth: unregister peer only when handler exits (#22908) · 836c647b
    Felix Lange authored
    This removes the error log message that says 
    
        Ethereum peer removal failed ... err="peer not registered"
    
    The error happened because removePeer was called multiple
    times: once to disconnect the peer, and another time when the
    handler exited. With this change, removePeer now has the sole
    purpose of disconnecting the peer. Unregistering happens exactly
    once, when the handler exits.
    836c647b
Name
Last commit
Last update
..
discover Loading commit data...
dnsdisc Loading commit data...
enode Loading commit data...
enr Loading commit data...
msgrate Loading commit data...
nat Loading commit data...
netutil Loading commit data...
nodestate Loading commit data...
rlpx Loading commit data...
simulations Loading commit data...
tracker Loading commit data...
dial.go Loading commit data...
dial_test.go Loading commit data...
message.go Loading commit data...
message_test.go Loading commit data...
metrics.go Loading commit data...
peer.go Loading commit data...
peer_error.go Loading commit data...
peer_test.go Loading commit data...
protocol.go Loading commit data...
server.go Loading commit data...
server_test.go Loading commit data...
transport.go Loading commit data...
transport_test.go Loading commit data...
util.go Loading commit data...
util_test.go Loading commit data...