Skip to content

Commit

Permalink
Update dot/peerset/peerstate.go
Browse files Browse the repository at this point in the history
Co-authored-by: Quentin McGaw <quentin.mcgaw@gmail.com>
  • Loading branch information
kishansagathiya and qdm12 committed Dec 1, 2021
1 parent 33d3c64 commit 50c66c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dot/peerset/peerstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 50c66c2

Please sign in to comment.