From add052cb69cb3fef8889f23c7096b5e447916856 Mon Sep 17 00:00:00 2001 From: Jorropo Date: Wed, 6 Jul 2022 15:05:14 +0200 Subject: [PATCH] chore: update go-car (cherry picked from commit 857f12b805436840c128f03f19a1baff249df52c) This commit was moved from ipfs/kubo@bc4f854ade2c5713bb9bba2039d3ee8fc03c6441 --- gateway/core/corehttp/gateway_handler_car.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gateway/core/corehttp/gateway_handler_car.go b/gateway/core/corehttp/gateway_handler_car.go index 195808870..5294d6598 100644 --- a/gateway/core/corehttp/gateway_handler_car.go +++ b/gateway/core/corehttp/gateway_handler_car.go @@ -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) }