Clean up
This commit is contained in:
@@ -15,7 +15,8 @@ PersistenceWriter::PersistenceWriter(std::chrono::milliseconds debounceDelay, Sn
|
||||
|
||||
PersistenceWriter::~PersistenceWriter()
|
||||
{
|
||||
StopAndFlush();
|
||||
std::string error;
|
||||
StopAndFlush((std::chrono::milliseconds::max)(), error);
|
||||
}
|
||||
|
||||
void PersistenceWriter::SetResultCallback(ResultCallback callback)
|
||||
@@ -71,12 +72,6 @@ bool PersistenceWriter::EnqueueSnapshot(const PersistenceSnapshot& snapshot, std
|
||||
return true;
|
||||
}
|
||||
|
||||
void PersistenceWriter::StopAndFlush()
|
||||
{
|
||||
std::string error;
|
||||
StopAndFlush((std::chrono::milliseconds::max)(), error);
|
||||
}
|
||||
|
||||
bool PersistenceWriter::StopAndFlush(std::chrono::milliseconds timeout, std::string& error)
|
||||
{
|
||||
{
|
||||
|
||||
@@ -46,7 +46,6 @@ public:
|
||||
bool WriteSnapshot(const PersistenceSnapshot& snapshot, std::string& error);
|
||||
bool EnqueueSnapshot(const PersistenceSnapshot& snapshot, std::string& error);
|
||||
bool StopAndFlush(std::chrono::milliseconds timeout, std::string& error);
|
||||
void StopAndFlush();
|
||||
PersistenceWriterMetrics GetMetrics() const;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user