-
Notifications
You must be signed in to change notification settings - Fork 123
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
Remove wait_for_event
and simplify event access in subscribe_events
#437
Conversation
wait_for_event
with subscribe_for_event_type
wait_for_event
and simplify events access in subscribe_events
.
wait_for_event
and simplify events access in subscribe_events
.wait_for_event
and simplify events access in subscribe_events
wait_for_event
and simplify events access in subscribe_events
wait_for_event
and simplify event access in subscribe_events
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 like the new EventSubscription
. I think it really makes the event extraction easier.
One thing that is not quite clear to me is how the EventDetails
and EventRecord
relate as they seem quite similar. Is it a possibility to get rid of EventDetails
?
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.
Nice, looks good to me! But we should clarify the drop stuff.
True enough. That might be something one could look into.
See: #440 |
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.
LGTM. Thanks for the clarification in the comment and the opening of the issue 👍
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.
Thanks a lot, lgtm now!
ed00055
to
cfd10d2
Compare
Removes the obsolete
wait_for_event
functions. I don't see the use case of these functions any more.In addition, the event subscription has been updated:
subscribe_frame_events
tosubscribe_events
and moved to more fittingevent.rs
instead of the frame_system file.StorageChangeSet
, which required quite some type insight to retrieve the events from it, a structEventSubscription
is returned. Uponnext_event
it directly tries to retrieve the events.closes #413