don't leave old multi ack codepath in

pull/1535/head
Jeff Becker 3 years ago
parent 8a4417cb1a
commit 7dbd25f271
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -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);
}

Loading…
Cancel
Save