1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

don't leave old multi ack codepath in

This commit is contained in:
Jeff Becker 2021-03-04 15:25:11 -05:00
parent 8a4417cb1a
commit 7dbd25f271
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05

View file

@ -834,17 +834,11 @@ namespace llarp
void
Session::HandleRecvMsgCompleted(const InboundMessage& msg)
{
/// should we send a multiack?
constexpr bool UseMACK = false;
const auto rxid = msg.m_MsgID;
if (m_ReplayFilter.emplace(rxid, m_Parent->Now()).second)
{
m_Parent->HandleMessage(this, msg.m_Data);
if (UseMACK)
m_SendMACKs.emplace(rxid);
else
EncryptAndSend(msg.ACKS());
EncryptAndSend(msg.ACKS());
}
m_RXMsgs.erase(rxid);
}