-
Notifications
You must be signed in to change notification settings - Fork 61
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
fix/rabbitmq-wrong-interface #290
Conversation
4a9de5b
to
d31d060
Compare
fa40887
to
8b785c0
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.
This is looking very nice @iccicci 🚀
Just a couple of minor issues
897d266
to
c9bde11
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.
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.
Fantastic work @iccicci 🎉
Please autosquash and request final review from @ssong-iohk
febf84e
to
ca16019
Compare
ca16019
to
a880367
Compare
Context
The package
@cardano-sdk/rabbitmq
doesn't respect all thecardano-js-sdk
standards and has a severely wrong error handling, in details:Promise
returned byTxSubmitWorker.start
should resolve at the end of the init stage rather than when theTxSubmitWorker
exits: ADP-1886TxSubmitWorker
should retry only those errors which can be retried rather than all the errors: ADP-1874TxSubmitWorker
should let know theRabbitMqTxSubmitProvider
when a transaction is in mempool (or in case of error, propagate it) in order to let thePromise
returned byRabbitMqTxSubmitProvider.submitTx
to resolve when the transaction is in mempool or reject with the original error: ADP-1823Proposed Solution
The package
@cardano-sdk/rabbitmq
have been completely refactored.Important Changes Introduced
@cardano-sdk/rabbitmq
interface was applied to@cardano-sdk/cardano-services
.@cardano-sdk/ogmios
was enriched to respond with an error which can be retried.@cardano-sdk/cardano-services
load test are meaningful.