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:
@ -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{}
|
||||
|
Reference in New Issue
Block a user