mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
const
This commit is contained in:
parent
8bee0a3d5e
commit
0f6f03a77a
2 changed files with 2 additions and 4 deletions
|
@ -229,7 +229,7 @@ namespace llarp
|
|||
llarp::AddressInfo to;
|
||||
if(!PickAddress(rc, to))
|
||||
return false;
|
||||
llarp::Addr addr(to);
|
||||
const llarp::Addr addr(to);
|
||||
{
|
||||
Lock l(&m_PendingMutex);
|
||||
if(m_Pending.count(addr) >= MaxSessionsPerKey)
|
||||
|
|
|
@ -40,7 +40,7 @@ namespace llarp
|
|||
struct TryConnectJob
|
||||
{
|
||||
llarp_time_t lastAttempt = 0;
|
||||
llarp::RouterContact rc;
|
||||
const llarp::RouterContact rc;
|
||||
llarp::ILinkLayer *link;
|
||||
llarp::Router *router;
|
||||
uint16_t triesLeft;
|
||||
|
@ -103,9 +103,7 @@ struct TryConnectJob
|
|||
if(!link)
|
||||
return true;
|
||||
if(!link->TryEstablishTo(rc))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
lastAttempt = router->Now();
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue