mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-09 19:32:24 +08:00
pass peer into testnet adapter method
This commit is contained in:
@ -80,7 +80,7 @@ func (i *Instance) SetBlockstoreLatency(t time.Duration) time.Duration {
|
||||
// just a much better idea.
|
||||
func session(ctx context.Context, net tn.Network, p testutil.Peer) Instance {
|
||||
|
||||
adapter := net.Adapter(p.ID())
|
||||
adapter := net.Adapter(p)
|
||||
|
||||
bsdelay := delay.Fixed(0)
|
||||
const kWriteCacheElems = 100
|
||||
|
Reference in New Issue
Block a user