Remove obsolete DNS_Mgr::asyncs_timeouts

This commit is contained in:
Tim Wojtulewicz 2022-04-23 21:24:14 -07:00 committed by Tim Wojtulewicz
parent aced9c3e56
commit 75d07c021e
2 changed files with 1 additions and 6 deletions

View file

@ -1307,7 +1307,6 @@ void DNS_Mgr::IssueAsyncRequests()
dns_req->MakeRequest(channel, this);
asyncs_timeouts.push(req);
++asyncs_pending;
}
}
@ -1401,7 +1400,7 @@ void DNS_Mgr::Flush()
double DNS_Mgr::GetNextTimeout()
{
if ( asyncs_timeouts.empty() )
if ( asyncs_pending == 0 )
return -1;
return run_state::network_time + DNS_TIMEOUT;

View file

@ -331,10 +331,6 @@ protected:
using QueuedList = std::list<AsyncRequest*>;
QueuedList asyncs_queued;
using TimeoutQueue =
std::priority_queue<AsyncRequest*, std::vector<AsyncRequest*>, AsyncRequestCompare>;
TimeoutQueue asyncs_timeouts;
unsigned long num_requests = 0;
unsigned long successful = 0;
unsigned long failed = 0;