Skip to content

Commit 8dfe5c2

Browse files
authored
Merge pull request BurntSushi#6 from JustinDrake/patch-1
Remove comment about ListPeers being unsafe (fixes BurntSushi#4)
2 parents 0981122 + e1f704e commit 8dfe5c2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

table.go

-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ func (rt *RoutingTable) Size() int {
205205
}
206206

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

0 commit comments

Comments
 (0)