Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
non alloc version
Browse files Browse the repository at this point in the history
  • Loading branch information
aarshkshah1992 committed May 8, 2020
1 parent 43dfa5f commit 98b95a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions peerstore/peerstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 98b95a4

Please sign in to comment.