mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-31 09:20:21 +00:00
disable rc expiration
This commit is contained in:
parent
46222df421
commit
62c200c6fa
@ -230,19 +230,28 @@ namespace llarp
|
||||
bool
|
||||
RouterContact::IsExpired(llarp_time_t now) const
|
||||
{
|
||||
/*
|
||||
auto expiresAt = last_updated + Lifetime;
|
||||
return now >= expiresAt;
|
||||
*/
|
||||
(void)now;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
RouterContact::ExpiresSoon(llarp_time_t now, llarp_time_t dlt) const
|
||||
{
|
||||
(void)now;
|
||||
(void)dlt;
|
||||
return false;
|
||||
/*
|
||||
if(IsExpired(now))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
auto expiresAt = last_updated + Lifetime;
|
||||
return expiresAt - now <= dlt;
|
||||
*/
|
||||
}
|
||||
|
||||
std::string
|
||||
|
Loading…
Reference in New Issue
Block a user