-
Notifications
You must be signed in to change notification settings - Fork 507
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
Move state multiwatcher package #10846
Move state multiwatcher package #10846
Conversation
Oh, part of this was also to move the Job and Block constants into core/model rather than the params package. These constants were used throughout the code, and had no place in the params package. |
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.
Looks nice!
type ApplicationInfo struct { | ||
// ApplicationResult holds an application info. | ||
// NOTE: we should look to combine ApplicationResult and ApplicationInfo. | ||
type ApplicationResult struct { |
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.
Seems weird to have a type named *Result without any error field.
|
As a prelude to making the all watchers combined and their own worker, it made sense to move the actual multiwatcher delta types.
Due to name clashes in the params package, two of the delta types have been renamed to use Update suffix rather than Info.
There is only one actual difference in this change, and it is in serialization param for the address type. The new Address uses "space-id" for the provider ID. The old structure used something else. I'm almost 100% confident that this was never used by the GUI nor anyone else, and I didn't feel that it necessitated having its own type just for something that was unused.