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
98b95a48
Commit
98b95a48
authored
May 08, 2020
by
Aarsh Shah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
non alloc version
parent
43dfa5fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
peerstore/peerstore.go
peerstore/peerstore.go
+2
-2
No files found.
peerstore/peerstore.go
View file @
98b95a48
...
...
@@ -238,7 +238,7 @@ type ProtoBook interface {
// If the returned error is not nil, the result is indeterminate.
SupportsProtocols
(
peer
.
ID
,
...
string
)
([]
string
,
error
)
//
IsProtocolSupported
returns true if the peer supports the given protocol and false otherwise.
//
SupportsAnyProtocol
returns true if the peer supports
ATLEAST ONE of
the given protocol
s
and false otherwise.
// If the returned error is not nil, the result is indeterminate.
IsProtocolSupported
(
peer
.
ID
,
string
)
(
bool
,
error
)
SupportsAnyProtocol
(
peer
.
ID
,
...
string
)
(
bool
,
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