Skip to content

Commit

Permalink
The metric namespace for bitswap is actually ipfs_bitswap :/
Browse files Browse the repository at this point in the history
  • Loading branch information
hsanjuan committed Oct 19, 2023
1 parent 37c379d commit 36552d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func Setup(ctx context.Context, cfg Config, key crypto.PrivKey, dnsCache *cached
return nil, err
}

bsctx := metri.CtxScope(ctx, "ipfs")
bsctx := metri.CtxScope(ctx, "ipfs_bitswap")

Check warning on line 271 in setup.go

View check run for this annotation

Codecov / codecov/patch

setup.go#L271

Added line #L271 was not covered by tests
bn := bsnet.NewFromIpfsHost(h, cr)
bswap := bsclient.New(bsctx, bn, blkst,
// default is 1 minute to search for a random live-want (1
Expand Down

0 comments on commit 36552d0

Please sign in to comment.