mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 17:27:58 +00:00
refactor: Replace all old instances of Config with New Config (#1627)
Fixes #1184 Previous PR's found [here](https://github.com/XRPLF/clio/pull/1593) and [here](https://github.com/XRPLF/clio/pull/1544)
This commit is contained in:
@@ -18,7 +18,9 @@
|
||||
//==============================================================================
|
||||
|
||||
#include "util/AsioContextTestFixture.hpp"
|
||||
#include "util/config/Config.hpp"
|
||||
#include "util/newconfig/ConfigDefinition.hpp"
|
||||
#include "util/newconfig/ConfigValue.hpp"
|
||||
#include "util/newconfig/Types.hpp"
|
||||
#include "web/dosguard/DOSGuardMock.hpp"
|
||||
#include "web/dosguard/IntervalSweepHandler.hpp"
|
||||
|
||||
@@ -29,6 +31,7 @@
|
||||
#include <chrono>
|
||||
|
||||
using namespace web::dosguard;
|
||||
using namespace util::config;
|
||||
|
||||
struct IntervalSweepHandlerTest : SyncAsioContextTest {
|
||||
protected:
|
||||
@@ -42,7 +45,7 @@ protected:
|
||||
|
||||
DOSGuardStrictMock guardMock;
|
||||
|
||||
util::Config cfg{boost::json::parse(JSONData)};
|
||||
ClioConfigDefinition cfg{{"dos_guard.sweep_interval", ConfigValue{ConfigType::Integer}.defaultValue(0)}};
|
||||
IntervalSweepHandler sweepHandler{cfg, ctx, guardMock};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user