diff --git a/.gx/lastpubver b/.gx/lastpubver index 6b8851a..7b56355 100644 --- a/.gx/lastpubver +++ b/.gx/lastpubver @@ -1 +1 @@ -2.5.0: QmdKS5YtmuSWKuLLgbHG176mS3VX3AKiyVmaaiAfvgcuch +2.6.0: QmaJ6QDUh7JKPPToaUZ4EtUsPBdrbSAG6zMTkzfEvZgz2j diff --git a/package.json b/package.json index 6963361..65a8ccf 100644 --- a/package.json +++ b/package.json @@ -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" } diff --git a/routing.go b/routing.go index 2ddfc4c..d187287 100644 --- a/routing.go +++ b/routing.go @@ -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