-
Notifications
You must be signed in to change notification settings - Fork 242
Fix logic for transfer+message with waitConfirm=true #258
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
Conversation
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Make the flows and method naming in these packages as similar as possible, and attempt to clarify the branches that result in an early send (within the DB transaction) vs a deferred send. Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Introduce new types for Broadcast and PrivateMessage, which can track state information as a message is resolved and sent. Currently we have two types of "send" (Send or SendAndWait), but this will also allow future customizations to the send flow. Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Ensure the pieces are sent in the correct order and wait for both to be confirmed. Signed-off-by: Andrew Richardson <andrew.richardson@kaleido.io>
Codecov Report
@@ Coverage Diff @@
## main #258 +/- ##
========================================
Coverage 99.53% 99.53%
========================================
Files 217 217
Lines 12245 12345 +100
========================================
+ Hits 12188 12288 +100
Misses 42 42
Partials 15 15
Continue to review full report at Codecov.
|
peterbroadhurst
left a comment
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.
This is great @awrichar - really cleans things up, and adds a valuable extra layer of structure
Part of #218.
Includes a new MessageSender interface that is used by asset manager, broadcast manager, private messaging,
and sync-async bridge. This allows cleaner tracking of the progress of resolving and sending a message, and
injection of hooks at particular spots in the flow (which is needed here to dispatch the transfer and message in
a specific order).