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:
Jingchen
2026-03-26 14:11:16 +00:00
committed by GitHub
parent faf69da4b0
commit addc1e8e25
116 changed files with 664 additions and 633 deletions

View File

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