Skip to content

Commit

Permalink
change the bitswap metrics scope to "ipfs"
Browse files Browse the repository at this point in the history
  • Loading branch information
hsanjuan committed Oct 19, 2023
1 parent 4207c9a commit 37c379d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@ func Setup(ctx context.Context, cfg Config, key crypto.PrivKey, dnsCache *cached
)
blkst = blockstore.NewIdStore(blkst)

bsctx := metri.CtxScope(ctx, "rainbow")

var pr routing.PeerRouting
var vs routing.ValueStore
var cr routing.ContentRouting
Expand Down Expand Up @@ -270,6 +268,7 @@ func Setup(ctx context.Context, cfg Config, key crypto.PrivKey, dnsCache *cached
return nil, err
}

bsctx := metri.CtxScope(ctx, "ipfs")
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 37c379d

Please sign in to comment.