mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:30:04 +00:00
Don't continue to refresh level 2 data if no data is present
This commit is contained in:
parent
70b8f78eb5
commit
5cfab59977
4 changed files with 21 additions and 10 deletions
|
|
@ -34,7 +34,7 @@ public:
|
|||
std::pair<size_t, size_t>
|
||||
ListObjects(std::chrono::system_clock::time_point date);
|
||||
std::shared_ptr<wsr88d::NexradFile> LoadObjectByKey(const std::string& key);
|
||||
size_t Refresh();
|
||||
std::pair<size_t, size_t> Refresh();
|
||||
|
||||
protected:
|
||||
virtual std::string
|
||||
|
|
|
|||
|
|
@ -84,9 +84,11 @@ public:
|
|||
* no objects have been added to the cache for the current date, the previous
|
||||
* date is also queried for data.
|
||||
*
|
||||
* @return New objects found
|
||||
* @return - New objects found
|
||||
* - Total objects found
|
||||
*/
|
||||
virtual size_t Refresh() = 0;
|
||||
|
||||
virtual std::pair<size_t, size_t> Refresh() = 0;
|
||||
|
||||
/**
|
||||
* Convert the object key to a time point.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue