From 50c66c22fd60c7e753194872160336c0e5ce4c3d Mon Sep 17 00:00:00 2001 From: Kishan Sagathiya Date: Wed, 1 Dec 2021 21:04:27 +0530 Subject: [PATCH] Update dot/peerset/peerstate.go Co-authored-by: Quentin McGaw --- dot/peerset/peerstate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dot/peerset/peerstate.go b/dot/peerset/peerstate.go index e93a63938b..dd0acf5d4c 100644 --- a/dot/peerset/peerstate.go +++ b/dot/peerset/peerstate.go @@ -362,7 +362,7 @@ func (ps *PeersState) forgetPeer(set int, peerID peer.ID) error { // tryOutgoing tries to set the peer as connected as an outgoing connection. // If there are enough slots available, switches the node to Connected and returns nil. -// If the slots are full, the node stays "not connected" and we return the error. +// If the slots are full, the node stays "not connected" and we return the error ErrOutgoingSlotsUnavailable. // non slot occupying nodes don't count towards the number of slots. func (ps *PeersState) tryOutgoing(setID int, peerID peer.ID) error { _, isNoSlotNode := ps.sets[setID].noSlotNodes[peerID]