Skip to content

Commit

Permalink
feat: plumb through context changes (ipfs#28)
Browse files Browse the repository at this point in the history
This commit was moved from ipfs/go-ipfs-routing@be1ea98
  • Loading branch information
guseggert authored Oct 29, 2021
1 parent 576911b commit d041c54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routing/offline/offline.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ func (c *offlineRouting) PutValue(ctx context.Context, key string, val []byte, _
return err
}

return c.datastore.Put(dshelp.NewKeyFromBinary([]byte(key)), data)
return c.datastore.Put(ctx, dshelp.NewKeyFromBinary([]byte(key)), data)
}

func (c *offlineRouting) GetValue(ctx context.Context, key string, _ ...routing.Option) ([]byte, error) {
buf, err := c.datastore.Get(dshelp.NewKeyFromBinary([]byte(key)))
buf, err := c.datastore.Get(ctx, dshelp.NewKeyFromBinary([]byte(key)))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit d041c54

Please sign in to comment.