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:
parent
8a4417cb1a
commit
7dbd25f271
|
@ -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…
Reference in a new issue