-
Notifications
You must be signed in to change notification settings - Fork 332
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
Add poll-based event source #3323
Conversation
As far as how this addresses the REST endpoint failing, Hermes would essentially switch to purely poll-based relaying in the case when the WebSocket connection gets closed? |
No the hope is that this problem (which I have never been able to reproduce) wouldn't manifest itself when Hermes is configured in poll mode. There is no automatic switching between the two modes. |
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.
I'm a bit confused by the semantics around event monitor vs. event source. The terms seem to be used interchangeably. Do they carry different semantic meanings?
Co-authored-by: Sean Chen <seanchen11235@gmail.com> Signed-off-by: Romain Ruetschi <romain.ruetschi@gmail.com>
FYI I tested this branch for wasm packets between nois-testnet-005 and uni-6 with the event_source.rpc (1s poll_interval) and it seems to work well so far. |
Glad to hear, thanks for the heads-up! 🙏 |
…rces to `push` and `pull`
Signed-off-by: Romain Ruetschi <romain@informal.systems>
This reverts commit 2f68906.
.changelog/unreleased/features/ibc-relayer/2850-poll-event-source.md
Outdated
Show resolved
Hide resolved
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.
Reviewed the code and did some tests with both modes with ordered and unordered channels and some channel handshake events also. Looks good, left a couple of comments.
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.
Amazing work @romac !
Let's merge this after 1.5.1 is released. |
Signed-off-by: Romain Ruetschi <romain@informal.systems>
…ms/hermes into romac/poll-vs-push
Closes: #2850
Fixes: #3190
Fixes: #2809
Might address: #3206 (see also #1299)
Description
"message"
events #3190 and Allow Hermes to relaywasm
messages #2809 by not having to query for events using the non-standardmessage
key.PR author checklist:
unclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.