Commit 98b95a48 authored by Aarsh Shah's avatar Aarsh Shah

non alloc version

parent 43dfa5fa
......@@ -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 protocols 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)
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment