Consume self in Monitor check_for_transaction#1729
Merged
Conversation
Take the receiver by value instead of by reference so the state machine no longer needs internal clones to construct transient and stasis transitions. Callers get the current state back through Stasis outcomes or transient errors, matching the pattern used by the other receiver transitions. Update the CLI monitoring loop to rebind the state from Stasis and transient-error outcomes instead of reusing a borrowed receiver, and clone the monitor in the typestate unit test where it is exercised multiple times.
Collaborator
Coverage Report for CI Build 29125172829Coverage increased (+0.004%) to 86.014%Details
Uncovered Changes
Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
spacebear21
approved these changes
Jul 13, 2026
spacebear21
left a comment
Collaborator
There was a problem hiding this comment.
concept ACK - check_for_transaction is a bit of an awkward method currently but this seems worth it for the consistency win until #1692 is revisted.
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.
Take the receiver by value instead of by reference so the state machine no longer needs internal clones to construct transient and stasis transitions. Callers get the current state back through Stasis outcomes or transient errors, matching the pattern used by the other receiver transitions.
Update the CLI monitoring loop to rebind the state from Stasis and transient-error outcomes instead of reusing a borrowed receiver, and clone the monitor in the typestate unit test where it is exercised multiple times.
This comes out of a suggested update from #1724 (comment).
Claude Fable was used to help make these edits.
Pull Request Checklist
Please confirm the following before requesting review:
AI
in the body of this PR.