Clean up
Some checks failed
CI / React UI Build (push) Successful in 10s
CI / Windows Release Package (push) Has been cancelled
CI / Native Windows Build And Tests (push) Has been cancelled

This commit is contained in:
Aiden
2026-05-11 20:11:20 +10:00
parent 1d08dec5fe
commit dd3cd6b66c
7 changed files with 28 additions and 29 deletions

View File

@@ -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)
{
{

View File

@@ -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:

View File

@@ -5,9 +5,8 @@
#include <cstdint>
#include <string>
// Phase 1 compatibility seam for status and timing reporting. HealthTelemetry
// owns the current operational status snapshot directly, so callers can report
// health without sharing runtime-store state.
// HealthTelemetry owns the current operational status snapshot directly, so
// callers can report health without sharing runtime-store state.
class HealthTelemetry
{
public: