Minor change: New networkWire.unicast field which might be handy in the future.

This commit is contained in:
Kleissner
2021-03-01 01:01:44 +01:00
parent b53ab7c7b3
commit 9086e201c3
4 changed files with 4 additions and 3 deletions

View File

@@ -106,7 +106,7 @@ func (network *Network) Listen() {
}
// send the packet to a channel which is processed by multiple workers.
rawPacketsIncoming <- networkWire{network: network, sender: sender, raw: buffer[:length], receiverPublicKey: peerPublicKey}
rawPacketsIncoming <- networkWire{network: network, sender: sender, raw: buffer[:length], receiverPublicKey: peerPublicKey, unicast: true}
}
}