mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
feat: Graceful shutdown with old web server (#2786)
- Stop accepting connections during graceful shutdown in the old web server - Stop all the services before Clio exits - Move cache saving into stop callback
This commit is contained in:
@@ -79,6 +79,9 @@ struct MockLedgerCache : data::LedgerCacheInterface {
|
||||
|
||||
MOCK_METHOD(void, waitUntilCacheContainsSeq, (uint32_t), (override));
|
||||
|
||||
using SaveToFileReturnType = std::expected<void, std::string>;
|
||||
MOCK_METHOD(SaveToFileReturnType, saveToFile, (std::string const& path), (const, override));
|
||||
|
||||
using LoadFromFileReturnType = std::expected<void, std::string>;
|
||||
MOCK_METHOD(
|
||||
LoadFromFileReturnType,
|
||||
|
||||
Reference in New Issue
Block a user