Skip to content

Commit

Permalink
Remove comment about ListPeers being unsafe (fixes BurntSushi#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinDrake authored Dec 12, 2016
1 parent 5871798 commit e1f704e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion table.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ func (rt *RoutingTable) Size() int {
}

// ListPeers takes a RoutingTable and returns a list of all peers from all buckets in the table.
// NOTE: This is potentially unsafe... use at your own risk
func (rt *RoutingTable) ListPeers() []peer.ID {
var peers []peer.ID
rt.tabLock.RLock()
Expand Down

0 comments on commit e1f704e

Please sign in to comment.