Skip to content

Commit

Permalink
bitswap/httpnet: remove unused ctx keys
Browse files Browse the repository at this point in the history
  • Loading branch information
hsanjuan committed Jan 20, 2025
1 parent 0c08659 commit 9b23ecf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions bitswap/network/httpnet/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ var durationHistogramBuckets = []float64{0.05, 0.1, 0.25, 0.5, 1, 2, 5, 10, 30,

var blockSizesHistogramBuckets = []float64{1, 128 << 10, 256 << 10, 512 << 10, 1024 << 10, 2048 << 10, 4092 << 10}

type ctxKeyT string

var ctxKey ctxKeyT = ctxKeyT(imetrics.CtxScopeKey)

func requestsInFlight(ctx context.Context) imetrics.Gauge {
return imetrics.NewCtx(ctx, "requests_in_flight", "Current number of in-flight requests").Gauge()
}
Expand Down

0 comments on commit 9b23ecf

Please sign in to comment.