Skip to content

fix: Don't cache responses to admin's requests#3058

Open
kuznetsss wants to merge 2 commits intoXRPLF:developfrom
kuznetsss:Dont_cache_admin_responses
Open

fix: Don't cache responses to admin's requests#3058
kuznetsss wants to merge 2 commits intoXRPLF:developfrom
kuznetsss:Dont_cache_admin_responses

Conversation

@kuznetsss
Copy link
Copy Markdown
Collaborator

No description provided.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 1, 2026

Codecov Report

❌ Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.88%. Comparing base (d6bae6c) to head (3cd986a).

Files with missing lines Patch % Lines
src/etl/LoadBalancer.cpp 25.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3058      +/-   ##
===========================================
- Coverage    81.89%   81.88%   -0.02%     
===========================================
  Files          396      396              
  Lines        15898    15900       +2     
  Branches      8432     8433       +1     
===========================================
  Hits         13019    13019              
- Misses        1671     1673       +2     
  Partials      1208     1208              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread src/etl/LoadBalancer.cpp

auto const cmd = boost::json::value_to<std::string>(request.at("command"));
if (forwardingCache_) {
if (forwardingCache_ and not isAdmin) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should probably use new method shouldUseCache here and in the next diff :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants