We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ServiceExt::oneshot
tower_batch::Worker
This issue was obsoleted by the fixes to the underlying issue in tower::Buffer, see #1593 for details.
tower::Buffer
Is your feature request related to a problem? Please describe.
tower-batch::Worker uses the ready_and().await?.call() pattern, but we prefer the ServiceExt::oneshot pattern.
tower-batch::Worker
ready_and().await?.call()
Describe the solution you'd like
We should see if we can use the ServiceExt::oneshot pattern, to prevent future poll_ready/call mismatches:
poll_ready/call
Worker::process_req
Worker::flush_service
See #1593 for details.
Describe alternatives you've considered
Do nothing: the code might hang if future changes break the poll_ready/call invariants.
Additional context
This issue was discovered during the review in #1593. It is a routine cleanup.
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
This issue was obsoleted by the fixes to the underlying issue in
tower::Buffer
, see #1593 for details.Is your feature request related to a problem? Please describe.
tower-batch::Worker
uses theready_and().await?.call()
pattern, but we prefer theServiceExt::oneshot
pattern.Describe the solution you'd like
We should see if we can use the
ServiceExt::oneshot
pattern, to prevent futurepoll_ready/call
mismatches:Worker::process_req
- https://github.com/ZcashFoundation/zebra/blob/main/tower-batch/src/worker.rs#L74Worker::flush_service
- https://github.com/ZcashFoundation/zebra/blob/main/tower-batch/src/worker.rs#L96poll_ready/call
invariantsSee #1593 for details.
Describe alternatives you've considered
Do nothing: the code might hang if future changes break the
poll_ready/call
invariants.Additional context
This issue was discovered during the review in #1593. It is a routine cleanup.
The text was updated successfully, but these errors were encountered: