mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-23 07:10:53 +00:00
refactor: Make function naming in ServiceRegistry consistent (#6390)
Signed-off-by: JCW <a1q123456@users.noreply.github.com> Co-authored-by: Ed Hennis <ed@ripple.com>
This commit is contained in:
@@ -61,7 +61,7 @@ Env::AppBundle::AppBundle(
|
||||
config->SSL_VERIFY_DIR, config->SSL_VERIFY_FILE, config->SSL_VERIFY, debugLog());
|
||||
owned = make_Application(std::move(config), std::move(logs), std::move(timeKeeper_));
|
||||
app = owned.get();
|
||||
app->logs().threshold(thresh);
|
||||
app->getLogs().threshold(thresh);
|
||||
if (!app->setup({}))
|
||||
Throw<std::runtime_error>("Env::AppBundle: setup failed");
|
||||
timeKeeper->set(app->getLedgerMaster().getClosedLedger()->header().closeTime);
|
||||
@@ -637,14 +637,14 @@ Env::do_rpc(
|
||||
std::vector<std::string> const& args,
|
||||
std::unordered_map<std::string, std::string> const& headers)
|
||||
{
|
||||
auto response = rpcClient(args, app().config(), app().logs(), apiVersion, headers);
|
||||
auto response = rpcClient(args, app().config(), app().getLogs(), apiVersion, headers);
|
||||
|
||||
for (unsigned ctr = 0; (ctr < retries_) and (response.first == rpcINTERNAL); ++ctr)
|
||||
{
|
||||
JLOG(journal.error()) << "Env::do_rpc error, retrying, attempt #" << ctr + 1 << " ...";
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(500));
|
||||
|
||||
response = rpcClient(args, app().config(), app().logs(), apiVersion, headers);
|
||||
response = rpcClient(args, app().config(), app().getLogs(), apiVersion, headers);
|
||||
}
|
||||
|
||||
return response.second;
|
||||
|
||||
Reference in New Issue
Block a user