8000 fix: Add sending queue to ng web server by kuznetsss · Pull Request #2273 · XRPLF/clio · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: Add sending queue to ng web server #2273

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: develop
Choose a base branch
from

Conversation

kuznetsss
Copy link
Collaborator

No description provided.

Copy link
codecov bot commented Jun 30, 2025

Codecov Report

Attention: Patch coverage is 69.38776% with 15 lines in your changes missing coverage. Please review.

Project coverage is 73.22%. Comparing base (687b1e8) to head (264e01a).

Files with missing lines Patch % Lines
src/web/ng/impl/HttpConnection.hpp 27.27% 4 Missing and 4 partials ⚠️
src/web/ng/impl/WsConnection.hpp 45.45% 0 Missing and 6 partials ⚠️
src/web/ng/SubscriptionContext.cpp 90.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2273   +/-   ##
========================================
  Coverage    73.22%   73.22%           
========================================
  Files          372      373    +1     
  Lines        15277    15304   +27     
  Branches      7727     7731    +4     
========================================
+ Hits         11186    11206   +20     
- Misses        1935     1937    +2     
- Partials      2156     2161    +5     

☔ 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.

@kuznetsss kuznetsss marked this pull request as ready for review July 1, 2025 12:46
Copy link
Collaborator
@godexsoft godexsoft left a comment

Choose a reason for hiding this comment

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

Leaving a few nits. Overall should be good 👍

@kuznetsss kuznetsss requested a review from godexsoft July 2, 2025 15:49
Copy link
Collaborator
@mathbunnyru mathbunnyru left a comment

Choose a reason for hiding this comment

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

Overall, looks good, only left some minor comments

8000
@@ -50,24 +51,31 @@ SubscriptionContext::SubscriptionContext(
{
}

SubscriptionContext::~SubscriptionContext()
{
ASSERT(disconnected_, "SubscriptionContext must be disconnected before destroying");
Copy link
Collaborator

Choose a reason for hiding this comment

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

That's UB if the exception is thrown, but I think we should be fine.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We throw exceptions from ASSERT() only in tests. I don't think there is a better way to check this, but I will think how to get rid of exceptions in tests for ASSERT().

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added WithMockAssertNoThrow fixture for this case in tests.

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.

3 participants
0