Skip to content

Commit

Permalink
changes as per review
Browse files Browse the repository at this point in the history
  • Loading branch information
aarshkshah1992 committed May 11, 2020
1 parent 1165597 commit 34f061a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/peerstore/peerstore.go
Expand Up @@ -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.
SupportsAnyProtocol(peer.ID, ...string) (bool, error)
FirstSupportedProtocol(peer.ID, ...string) (string, error)
}

0 comments on commit 34f061a

Please sign in to comment.