Skip to content

Commit

Permalink
Update pkg/retriever/directcandidatesource.go
Browse files Browse the repository at this point in the history
Co-authored-by: Rod Vagg <rod@vagg.org>
  • Loading branch information
hannahhoward and rvagg committed Jan 27, 2024
1 parent 1c606ed commit bf83e4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/retriever/directcandidatesource.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ type DirectCandidateSource struct {

type Option func(*DirectCandidateSource)

// WithLibp2pCandidateDiscovery sets a libp2p Host for the DirectCandidateFinder.
// If a Host is set, the providers will be queried to discover available protocols, otherwise
// all protocols will be assumed by default.
func WithLibp2pCandidateDiscovery(h host.Host) Option {
return func(d *DirectCandidateSource) {
d.h = h
Expand Down

0 comments on commit bf83e4b

Please sign in to comment.