mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
always use shared_ptr for I2NPMessage
This commit is contained in:
parent
885d57138a
commit
06c4aca490
12 changed files with 63 additions and 84 deletions
|
@ -764,7 +764,7 @@ namespace stream
|
|||
|
||||
std::shared_ptr<I2NPMessage> Stream::CreateDataMessage (const uint8_t * payload, size_t len)
|
||||
{
|
||||
auto msg = ToSharedI2NPMessage (NewI2NPShortMessage ());
|
||||
auto msg = NewI2NPShortMessage ();
|
||||
if (len <= i2p::stream::COMPRESSION_THRESHOLD_SIZE)
|
||||
m_LocalDestination.m_Deflator.SetCompressionLevel (Z_NO_COMPRESSION);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue