Skip to content

Commit

Permalink
Merge pull request #3986 from nymtech/bugfix/packet-type-satsub
Browse files Browse the repository at this point in the history
use saturating sub in case outfox is not enabled
  • Loading branch information
tommyv1987 authored Oct 13, 2023
2 parents 3b634fe + fe48701 commit e02eae8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/client-libs/gateway-client/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e02eae8

Please sign in to comment.