1
1
Fork 0
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:
Jeff Becker 2019-04-12 08:05:43 -04:00
parent 9a6d894421
commit 5861f4aafa
No known key found for this signature in database
GPG key ID: F357B3B42F6F9B05
2 changed files with 4 additions and 2 deletions

View file

@ -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;
}

View file

@ -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});
}