Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-kbucket
Commits
8dfe5c29
Commit
8dfe5c29
authored
Aug 30, 2017
by
Steven Allen
Committed by
GitHub
Aug 30, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6 from JustinDrake/patch-1
Remove comment about ListPeers being unsafe (fixes #4)
parents
0981122f
e1f704ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
table.go
table.go
+0
-1
No files found.
table.go
View file @
8dfe5c29
...
...
@@ -205,7 +205,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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment