Merge pull request #3986 from nymtech/bugfix/packet-type-satsub

use saturating sub in case outfox is not enabled
This commit is contained in:
Tommy Verrall
2023-10-13 10:03:02 +01:00
committed by GitHub
@@ -42,7 +42,9 @@ pub trait GatewayPacketRouter {
}
n if n
== PacketSize::OutfoxRegularPacket.plaintext_size() - outfox_ack_overhead =>
== PacketSize::OutfoxRegularPacket
.plaintext_size()
.saturating_sub(outfox_ack_overhead) =>
{
trace!("received regular outfox packet");
received_messages.push(received_packet);