Skip to content

Commit

Permalink
chore: update go-car
Browse files Browse the repository at this point in the history
(cherry picked from commit 857f12b)


This commit was moved from ipfs/kubo@bc4f854
  • Loading branch information
Jorropo authored and aschmahmann committed Jul 6, 2022
1 parent 444e066 commit add052c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gateway/core/corehttp/gateway_handler_car.go
Expand Up @@ -81,12 +81,12 @@ func (i *gatewayHandler) serveCAR(ctx context.Context, w http.ResponseWriter, r
i.carStreamGetMetric.WithLabelValues(contentPath.Namespace()).Observe(time.Since(begin).Seconds())
}

// FIXME(@Jorropo): https://github.com/ipld/go-car/issues/315
type dagStore struct {
dag coreiface.APIDagService
ctx context.Context
}

func (ds dagStore) Get(c cid.Cid) (blocks.Block, error) {
obj, err := ds.dag.Get(ds.ctx, c)
return obj, err
func (ds dagStore) Get(_ context.Context, c cid.Cid) (blocks.Block, error) {
return ds.dag.Get(ds.ctx, c)
}

0 comments on commit add052c

Please sign in to comment.