Skip to content

Commit

Permalink
chore: add the same config as vole
Browse files Browse the repository at this point in the history
  • Loading branch information
2color committed Aug 6, 2024
1 parent 2cabb60 commit 23e8646
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ func newDaemon(ctx context.Context, acceleratedDHT bool) (*daemon, error) {
return &daemon{h: h, dht: d, dhtMessenger: pm, createTestHost: func() (host.Host, error) {
return libp2p.New(
libp2p.ConnectionGater(&privateAddrFilterConnectionGater{}),
libp2p.DefaultMuxers,
libp2p.Muxer("/mplex/6.7.0", mplex.DefaultTransport),
libp2p.EnableHolePunching(),
)
}}, nil
Expand Down Expand Up @@ -191,6 +193,7 @@ func (d *daemon) runCheck(query url.Values) (*output, error) {
}

func checkBitswapCID(ctx context.Context, host host.Host, c cid.Cid, ma multiaddr.Multiaddr) BitswapCheckOutput {
log.Printf("Start of Bitswap check for cid %s by attempting to connect to ma: %v with the temporary peer: %s", c, ma, host.ID())
out := BitswapCheckOutput{}
start := time.Now()

Expand All @@ -205,6 +208,7 @@ func checkBitswapCID(ctx context.Context, host host.Host, c cid.Cid, ma multiadd
}
}

log.Printf("End of Bitswap check for %s by attempting to connect to ma: %v", c, ma)
out.Duration = time.Since(start)
return out
}
Expand Down

0 comments on commit 23e8646

Please sign in to comment.