Skip to content

Commit

Permalink
Merge pull request ipfs/kubo#9089 from Jorropo/chore/update-car
Browse files Browse the repository at this point in the history
chore: update go-car

This commit was moved from ipfs/kubo@1efa29d
  • Loading branch information
aschmahmann authored Jul 6, 2022
2 parents 5761ed1 + 857f12b commit 55c3d88
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gateway/core/corehttp/gateway_handler_car.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,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 55c3d88

Please sign in to comment.