consistent spelling and use std::max

pull/1272/head
Jeff Becker 4 years ago
parent c6885ec285
commit 95e55a2544
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -78,9 +78,7 @@ namespace llarp
llarp::LogInfo("starting up");
if (mainloop == nullptr)
{
auto jobQueueSize = config->router.m_JobQueueSize;
if (jobQueueSize < 1024)
jobQueueSize = 1024;
auto jobQueueSize = std::max(event_loop_queue_size, config->router.m_JobQueueSize);
mainloop = llarp_make_ev_loop(jobQueueSize);
}
logic->set_event_loop(mainloop.get());

@ -753,8 +753,8 @@ namespace libuv
llarp::LogContext::Instance().logStream->Tick(loop->time_now());
}
Loop::Loop(size_t queueLength)
: llarp_ev_loop(), m_LogicCalls(queueLength), m_timerQueue(20), m_timerCancelQueue(20)
Loop::Loop(size_t queue_size)
: llarp_ev_loop(), m_LogicCalls(queue_size), m_timerQueue(20), m_timerCancelQueue(20)
{
}

@ -24,7 +24,7 @@ namespace libuv
Callback callback;
};
Loop(size_t queueSize);
Loop(size_t queue_size);
bool
init() override;

Loading…
Cancel
Save