1
0
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:
Brian Tiger Chow
2014-12-23 18:18:32 -05:00
parent e017d6edc6
commit 6cdb4c23b4
3 changed files with 16 additions and 15 deletions

View File

@ -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