-
Notifications
You must be signed in to change notification settings - Fork 145
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
Pool unblocking + shutdown #1551
Pool unblocking + shutdown #1551
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1551 +/- ##
==========================================
+ Coverage 19.31% 20.32% +1.01%
==========================================
Files 131 122 -9
Lines 9298 8732 -566
==========================================
- Hits 1796 1775 -21
+ Misses 7502 6957 -545
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
adb54a6
to
ac0f902
Compare
6fc888e
to
9ea1a68
Compare
9ea1a68
to
fef0cf3
Compare
e49d6d7
to
d58772c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but looks like fmt CI is broken?
Currently the state loop at the end of `PoolSv2::start` is blocking, it is wrapped with `tokio::task` so we can return from the `start` function. This should give us more flexibelty in how we work with `PoolSv2`. For example we can access the `PoolSv2` state directly through the struct.
A simple shutdown function that exits the State loop and shutsdown the Pool server.
d58772c
to
40f2e66
Compare
40f2e66
to
af6f3c5
Compare
info!( | ||
"Listening for encrypted connection on: {}", | ||
config.listen_address() | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the fact that we're changing this log is prevenging MG sv1-test
from asserting that pool_sv2
has properly launched, which is making the test get stuck
so I'm adding to this PR c8a721b to unblock CI and proceed with merging
Partially addresses #1320