-
-
Notifications
You must be signed in to change notification settings - Fork 538
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
[client] Cleanup dns and route states on startup #2757
Conversation
|
||
// State interface defines the methods that all state types must implement | ||
type State interface { | ||
Name() string |
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.
If accidentally implement multiple states with the same name then it can cause an issue. Maybe would be good to maintain the names in this pkg.
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 could add a check in RegisterState
but that means we need to return an error
which adds more refactoring/boilerplate. Is it worth it?
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 am just thinking in exported const string what will be used by the implementation of the interface.
Quality Gate passedIssues Measures |
Describe your changes
Issue ticket number and link
Checklist