mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-24 01:46:36 +02:00
Merge pull request #2041 from Vort/i2np_typo
fix typo in message expiration check
This commit is contained in:
commit
fbca27fe73
1 changed files with 1 additions and 1 deletions
|
@ -268,7 +268,7 @@ namespace tunnel
|
||||||
bool IsExpired () const;
|
bool IsExpired () const;
|
||||||
bool IsExpired (uint64_t ts) const; // in milliseconds
|
bool IsExpired (uint64_t ts) const; // in milliseconds
|
||||||
bool IsLocalExpired (uint64_t mts) const { return mts > localExpiration; }; // monotonic microseconds
|
bool IsLocalExpired (uint64_t mts) const { return mts > localExpiration; }; // monotonic microseconds
|
||||||
bool IsLocalSemiExpired (uint64_t mts) const { return mts > localExpiration - I2NP_MESSAGE_EXPIRATION_TIMEOUT / 2; }; // monotonic microseconds
|
bool IsLocalSemiExpired (uint64_t mts) const { return mts > localExpiration - I2NP_MESSAGE_LOCAL_EXPIRATION_TIMEOUT / 2; }; // monotonic microseconds
|
||||||
|
|
||||||
void Drop () { if (onDrop) { onDrop (); onDrop = nullptr; }; }
|
void Drop () { if (onDrop) { onDrop (); onDrop = nullptr; }; }
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue