-
Notifications
You must be signed in to change notification settings - Fork 70
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
Don't publish deal sealing status update if no one is subscribed #401
Conversation
2de2754
to
754bf74
Compare
} | ||
|
||
func (s *updatesSubscription) Close() error { |
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.
Do we call this close when the deal is no longer in the first 10 deals on the UI ?
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.
Yes, it's called when the front end stops subscribing to events.
This can happen because
- the user closes the web page
- a new deal comes in that moves the last deal on the page to page 2 (ie no longer visible)
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
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.
some nits.
* feat: update UI when deal sealing state changes * Don't publish deal sealing status update if no one is subscribed (#401) * feat: dont check seal status change if no one is subscribed to events * refactor: rename to make subscription name clearer * feat: test that Proving event is fired when sealer reaches that state
No description provided.