1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-09 19:32:24 +08:00

swap net2 -> net

This commit is contained in:
Juan Batiz-Benet
2015-01-01 12:45:39 -08:00
parent 128e820ccb
commit 8fb5cf9578
91 changed files with 411 additions and 6460 deletions

View File

@ -27,12 +27,12 @@ func (rs *mocknetserver) ClientWithDatastore(ctx context.Context, p testutil.Ide
// FIXME AddPeer doesn't appear to be idempotent
net, err := rs.mn.AddPeer(p.PrivateKey(), p.Address())
host, err := rs.mn.AddPeer(p.PrivateKey(), p.Address())
if err != nil {
panic("FIXME")
// return nil, debugerror.Wrap(err)
}
return dht.NewDHT(ctx, p.ID(), net, sync.MutexWrap(ds))
return dht.NewDHT(ctx, host, sync.MutexWrap(ds))
}
var _ Server = &mocknetserver{}