Commit 51d5dc02 authored by Brian Tiger Chow's avatar Brian Tiger Chow

fix(bitswap:testnet) Provide takes ctx

parent d345da7d
......@@ -92,6 +92,6 @@ func (a *routingClient) FindProvidersAsync(ctx context.Context, k u.Key, max int
return out
}
func (a *routingClient) Provide(key u.Key) error {
func (a *routingClient) Provide(_ context.Context, key u.Key) error {
return a.hashTable.Announce(a.peer, key)
}
......@@ -53,7 +53,7 @@ func TestClientFindProviders(t *testing.T) {
rs := VirtualRoutingServer()
client := rs.Client(peer)
k := u.Key("hello")
err := client.Provide(k)
err := client.Provide(context.Background(), k)
if err != nil {
t.Fatal(err)
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment