mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-03 23:15:52 +00:00
actually start disk threadpool
This commit is contained in:
parent
1380014583
commit
a3bb2c7d6a
@ -669,15 +669,16 @@ llarp_router::async_verify_RC(const llarp::RouterContact &rc)
|
|||||||
job->hook = &llarp_router::on_verify_client_rc;
|
job->hook = &llarp_router::on_verify_client_rc;
|
||||||
if(rpcCaller && rc.IsPublicRouter())
|
if(rpcCaller && rc.IsPublicRouter())
|
||||||
{
|
{
|
||||||
rpcCaller->VerifyRouter(rc.pubkey, [job, ctx](llarp::PubKey, bool valid) {
|
rpcCaller->VerifyRouter(rc.pubkey, [job](llarp::PubKey pk, bool valid) {
|
||||||
if(valid)
|
if(valid)
|
||||||
{
|
{
|
||||||
|
llarp::LogDebug("lokid says ", pk, " is valid");
|
||||||
llarp_nodedb_async_verify(job);
|
llarp_nodedb_async_verify(job);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
delete job;
|
llarp::LogDebug("lokid says ", pk, " is NOT valid");
|
||||||
delete ctx;
|
job->hook(job);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -710,6 +711,7 @@ llarp_router::Run()
|
|||||||
}
|
}
|
||||||
|
|
||||||
llarp_threadpool_start(tp);
|
llarp_threadpool_start(tp);
|
||||||
|
llarp_threadpool_start(disk);
|
||||||
|
|
||||||
routerProfiling.Load(routerProfilesFile.c_str());
|
routerProfiling.Load(routerProfilesFile.c_str());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user