mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-23 23:20:33 +00:00
refactor: Change config section and key string literals into constants (#7095)
Co-authored-by: Bart <11445373+bthomee@users.noreply.github.com>
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
#include <test/jtx/envconfig.h>
|
||||
|
||||
#include <xrpld/core/Config.h>
|
||||
#include <xrpld/core/ConfigSections.h>
|
||||
|
||||
#include <xrpl/beast/unit_test/suite.h>
|
||||
#include <xrpl/config/Constants.h>
|
||||
#include <xrpl/protocol/jss.h>
|
||||
|
||||
#include <memory>
|
||||
@@ -68,7 +68,7 @@ public:
|
||||
"5AqDedFv5TJa2w0i21eq3MYywLVJZnFOr7C0kw2AiTzSCjIzditQ8=";
|
||||
|
||||
Env env{*this, envconfig([&tokenBlob](std::unique_ptr<Config> cfg) {
|
||||
cfg->section(SECTION_VALIDATOR_TOKEN).append(tokenBlob);
|
||||
cfg->section(Sections::kValidatorToken).append(tokenBlob);
|
||||
return cfg;
|
||||
})};
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user