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-core
Commits
dabf5bbf
Commit
dabf5bbf
authored
May 11, 2020
by
Aarsh Shah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes as per review
parent
98b95a48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
peerstore/peerstore.go
peerstore/peerstore.go
+3
-2
No files found.
peerstore/peerstore.go
View file @
dabf5bbf
...
...
@@ -238,7 +238,8 @@ type ProtoBook interface {
// If the returned error is not nil, the result is indeterminate.
SupportsProtocols
(
peer
.
ID
,
...
string
)
([]
string
,
error
)
// SupportsAnyProtocol returns true if the peer supports ATLEAST ONE of the given protocols and false otherwise.
// FirstSupportedProtocol returns the first protocol that the peer supports among the given protocols.
// If the peer does not support any of the given protocols, this function will return an empty string and a nil error.
// If the returned error is not nil, the result is indeterminate.
Support
sAny
Protocol
(
peer
.
ID
,
...
string
)
(
bool
,
error
)
First
Support
ed
Protocol
(
peer
.
ID
,
...
string
)
(
string
,
error
)
}
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