mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
* less vigorous profiling
* don't spam connections to bootstrap
This commit is contained in:
parent
9a6d894421
commit
5861f4aafa
2 changed files with 4 additions and 2 deletions
|
@ -73,7 +73,6 @@ namespace llarp
|
|||
if(connectTimeoutCount > chances)
|
||||
return connectTimeoutCount < connectGoodCount
|
||||
&& (pathSuccessCount * chances) > pathFailCount;
|
||||
chances /= 2;
|
||||
return (pathSuccessCount * chances) > pathFailCount;
|
||||
}
|
||||
|
||||
|
@ -212,6 +211,7 @@ namespace llarp
|
|||
llarp::LogWarn("failed to load router profiles from ", fname);
|
||||
return false;
|
||||
}
|
||||
m_LastSave = llarp::time_now_ms();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -838,7 +838,7 @@ namespace llarp
|
|||
{
|
||||
if(StrEq(key, "type") && StrEq(val, "syslog"))
|
||||
{
|
||||
// TODO(despair): write event log syslog class
|
||||
// TODO(despair): write event log syslog class
|
||||
#if defined(_WIN32)
|
||||
LogError("syslog not supported on win32");
|
||||
#else
|
||||
|
@ -1146,6 +1146,8 @@ namespace llarp
|
|||
{
|
||||
for(const auto &rc : bootstrapRCList)
|
||||
{
|
||||
if(HasPendingConnectJob(rc.pubkey))
|
||||
continue;
|
||||
TryConnectAsync(rc, 4);
|
||||
dht()->impl->ExploreNetworkVia(dht::Key_t{rc.pubkey});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue