Skip to content

Commit bf83e4b

Browse files
hannahhowardrvagg
andcommitted
Update pkg/retriever/directcandidatesource.go
Co-authored-by: Rod Vagg <[email protected]>
1 parent 1c606ed commit bf83e4b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/retriever/directcandidatesource.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ type DirectCandidateSource struct {
2525

2626
type Option func(*DirectCandidateSource)
2727

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

0 commit comments

Comments
 (0)