mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-18 23:16:37 +02:00
eliminate extra copy
This commit is contained in:
parent
d96dbe9365
commit
d2edbfd6fa
1 changed files with 2 additions and 1 deletions
|
@ -203,7 +203,8 @@ namespace tunnel
|
|||
{
|
||||
m_Buffer.CompleteCurrentTunnelDataMessage ();
|
||||
std::vector<std::shared_ptr<I2NPMessage> > newTunnelMsgs;
|
||||
for (auto& tunnelMsg : m_Buffer.GetTunnelDataMsgs ())
|
||||
const auto& tunnelDataMsgs = m_Buffer.GetTunnelDataMsgs ();
|
||||
for (auto& tunnelMsg : tunnelDataMsgs)
|
||||
{
|
||||
auto newMsg = CreateEmptyTunnelDataMsg ();
|
||||
m_Tunnel->EncryptTunnelMsg (tunnelMsg, newMsg);
|
||||
|
|
Loading…
Add table
Reference in a new issue