mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-27 05:17:49 +08:00
fix(bitswap/testnet) test typo
@jbenet
previous impl read...
if !bytes.Equal(nextPeer.ID(), from.ID()) {
was translated to...
if nextPeer == from {
This commit is contained in:
parent
4e8c28029a
commit
a2f321f0f6
@ -132,7 +132,7 @@ func (n *network) SendRequest(
|
||||
}
|
||||
|
||||
// TODO test when receiver doesn't immediately respond to the initiator of the request
|
||||
if nextPeer == from {
|
||||
if nextPeer != from {
|
||||
go func() {
|
||||
nextReceiver, ok := n.clients[nextPeer]
|
||||
if !ok {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user