Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
remove ctx err redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
aarshkshah1992 committed Apr 7, 2023
1 parent 303a77b commit 993a85c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -373,9 +373,6 @@ func (p *pool) fetchBlockWith(ctx context.Context, c cid.Cid, with string) (blk

return
}
if ce := ctx.Err(); ce != nil {
return nil, ce
}
}

fetchDurationBlockFailureMetric.Observe(float64(time.Since(blockFetchStart).Milliseconds()))
Expand Down

0 comments on commit 993a85c

Please sign in to comment.