From 87cd7ab1b24ff4bbeb2ea6df0cb4a526c68d416b Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Wed, 22 Feb 2023 12:43:16 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Marcin Rataj --- blockstore_proxy.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/blockstore_proxy.go b/blockstore_proxy.go index bb45809..bc3a098 100644 --- a/blockstore_proxy.go +++ b/blockstore_proxy.go @@ -50,7 +50,7 @@ func (ps *proxyBlockStore) fetch(ctx context.Context, c cid.Cid) (blocks.Block, defer resp.Body.Close() if resp.StatusCode != http.StatusOK { - return nil, fmt.Errorf("unexpected status from remote gateway: %s", resp.Status) + return nil, fmt.Errorf("http error from block gateway: %s", resp.Status) } rb, err := io.ReadAll(resp.Body) @@ -64,7 +64,6 @@ func (ps *proxyBlockStore) fetch(ctx context.Context, c cid.Cid) (blocks.Block, return nil, blocks.ErrWrongHash } if !nc.Equals(c) { - fmt.Printf("got %s vs %s\n", nc, c) return nil, blocks.ErrWrongHash } }