Repository navigation
fix(transport): Forward flush through Arc<T> transports - #1390
Merged
Merged
Conversation
The `Transport` impl for `Arc<T>` forwarded `send_envelope` and `shutdown` but not `flush`, so flushing through it hit the trait default and returned `true` without flushing `T`. This also affects `Client::flush` when passing an `Arc`-wrapped transport to `ClientOptions::transport`, as in `.transport(Arc::new(TestTransport::new()))`. `flush` was added to the trait in #314 without updating this impl. `clippy::missing_trait_methods` is denied on the impl so a future defaulted `Transport` method cannot be silently skipped again. Fixes #1374 Co-Authored-By: Dr. Daniel Szokenstein <[email protected]>
szokeasaurusrex
approved these changes
Oct 29, 2026
alexander-alderman-webb
approved these changes
Nov 3, 2026
szokeasaurusrex
left a comment
Member
There was a problem hiding this comment.
Please resolve the merge conflict
…lush # Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
Transportimpl forArc<T>forwardedsend_envelopeandshutdownbut notflush, so flushing through it hit the trait default and returnedtruewithout flushingT. This also affectsClient::flushwhen passing anArc-wrapped transport toClientOptions::transport, as in.transport(Arc::new(TestTransport::new())).flushwas added to the trait in #314 without updating this impl.clippy::missing_trait_methodsis denied on the impl so a future defaultedTransportmethod cannot be silently skipped again.Fixes #1374
Fixes RUST-302
via @szokeasaurusrex.
--
View Junior Session [Sentry]