ResolveWithNegativeCacheCallback is like Resolve but it also returns a function callback that can be used to cache that a key could not be resolved.
(ctx context.Context, key string, allowSelf bool, count int)
| 19 | |
| 20 | // ResolveWithNegativeCacheCallback is like Resolve but it also returns a function callback that can be used to cache that a key could not be resolved. |
| 21 | ResolveWithNegativeCacheCallback(ctx context.Context, key string, allowSelf bool, count int) (<-chan PeerInfo, func(), error) |
| 22 | |
| 23 | // Provide provides the given keys to the network. |
| 24 | // This lets the k-closest peers to the key know that we are providing it. |