mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
Ref T149, utility functions for pending URLs
* Do not call read twice in info reader * Threadsafe utility functions
This commit is contained in:
committed by
Mathew Sutcliffe
parent
52caf795d1
commit
0cf308450e
@@ -41,6 +41,12 @@ namespace BlackMisc
|
||||
return this->findBy(&CUrlLog::isPending, true);
|
||||
}
|
||||
|
||||
CUrlLogList CUrlLogList::findOutdatedPending(int outdatedOffsetMs) const
|
||||
{
|
||||
if (this->isEmpty()) { return CUrlLogList(); }
|
||||
return this->findPending().findBeforeNowMinusOffset(outdatedOffsetMs);
|
||||
}
|
||||
|
||||
CUrlLogList CUrlLogList::findErrors() const
|
||||
{
|
||||
return this->findBy(&CUrlLog::isPending, false, &CUrlLog::isSuccess, false);
|
||||
|
||||
Reference in New Issue
Block a user