mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 03:50:05 +00:00
Clean up some functions in chunks data provider
This commit is contained in:
parent
1f0d2a7a66
commit
309a5ed25e
1 changed files with 7 additions and 23 deletions
|
|
@ -102,9 +102,6 @@ public:
|
|||
|
||||
std::chrono::system_clock::time_point GetScanTime(const std::string& prefix);
|
||||
int GetScanNumber(const std::string& prefix);
|
||||
std::string GetScanKey(const std::string& prefix,
|
||||
const std::chrono::system_clock::time_point& time,
|
||||
int last);
|
||||
|
||||
bool LoadScan(Impl::ScanRecord& scanRecord);
|
||||
std::tuple<bool, size_t, size_t> ListObjects();
|
||||
|
|
@ -311,19 +308,6 @@ AwsLevel2ChunksDataProvider::Impl::GetScanTime(const std::string& prefix)
|
|||
return {};
|
||||
}
|
||||
|
||||
std::string AwsLevel2ChunksDataProvider::Impl::GetScanKey(
|
||||
const std::string& prefix,
|
||||
const std::chrono::system_clock::time_point& time,
|
||||
int last)
|
||||
{
|
||||
|
||||
static const std::string timeFormat {"%Y%m%d-%H%M%S"};
|
||||
|
||||
// TODO
|
||||
return fmt::format(
|
||||
"{0}/{1:%Y%m%d-%H%M%S}-{2}", prefix, fmt::gmtime(time), last - 1);
|
||||
}
|
||||
|
||||
std::tuple<bool, size_t, size_t>
|
||||
AwsLevel2ChunksDataProvider::Impl::ListObjects()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue