Remove the peer from connecting list if the connection is established
(addr string)
| 441 | |
| 442 | //Remove the peer from connecting list if the connection is established |
| 443 | func (this *NetServer) RemoveFromConnectingList(addr string) { |
| 444 | this.connectingNodes.Lock() |
| 445 | defer this.connectingNodes.Unlock() |
| 446 | this.connectingNodes.ConnectingAddrs.Delete(addr) |
| 447 | log.Trace("[p2p]remove from out connecting list", addr) |
| 448 | } |
| 449 | |
| 450 | //record the peer which is going to be dialed and sent version message but not in establish state |
| 451 | func (this *NetServer) GetOutConnectingListLen() (count uint) { |