Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Commit

Permalink
Merge pull request #25 from libp2p/feat/search-value
Browse files Browse the repository at this point in the history
SearchValue
  • Loading branch information
magik6k committed Sep 24, 2018
2 parents 602f8a5 + 992c68d commit 2c14f23
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gx/lastpubver
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.0: QmdKS5YtmuSWKuLLgbHG176mS3VX3AKiyVmaaiAfvgcuch
2.6.0: QmaJ6QDUh7JKPPToaUZ4EtUsPBdrbSAG6zMTkzfEvZgz2j
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@
"license": "MIT",
"name": "go-libp2p-routing",
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
"version": "2.5.0"
"version": "2.6.0"
}

6 changes: 4 additions & 2 deletions routing.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,16 @@ type ValueStore interface {
// GetValue searches for the value corresponding to given Key.
GetValue(context.Context, string, ...ropts.Option) ([]byte, error)

// TODO
// SearchValue searches for better and better values from this value
// store corresponding to the given Key. Implementations may halt the
// search after a period of time or may continue searching indefinitely.
//
// Useful when you want a result *now* but still want to hear about
// better/newer results.
//SearchValue(context.Context, string, ...ropts.Option) (<-chan []byte, error)
//
// Implementations of this methods won't return ErrNotFound. When a value
// couldn't be found, the channel will get closed without passing any results
SearchValue(context.Context, string, ...ropts.Option) (<-chan []byte, error)
}

// IpfsRouting is the combination of different routing types that ipfs
Expand Down

0 comments on commit 2c14f23

Please sign in to comment.