-
Notifications
You must be signed in to change notification settings - Fork 929
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 comments for config_center #545
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #545 +/- ##
===========================================
- Coverage 67.20% 66.92% -0.29%
===========================================
Files 174 174
Lines 9261 9261
===========================================
- Hits 6224 6198 -26
- Misses 2432 2455 +23
- Partials 605 608 +3
Continue to review full report at Codecov.
|
change base to develop pls |
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.
Use s
when the verb after the third person
config_center/apollo/listener.go
Outdated
@@ -49,15 +49,15 @@ func (a *apolloListener) OnChange(changeEvent *agollo.ChangeEvent) { | |||
} | |||
} | |||
|
|||
// AddListener ... | |||
// AddListener add a listener for apollo |
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.
// AddListener add a listener for apollo | |
// AddListener adds a listener for apollo |
config_center/apollo/listener.go
Outdated
@@ -29,7 +29,7 @@ type apolloListener struct { | |||
listeners map[config_center.ConfigurationListener]struct{} | |||
} | |||
|
|||
// NewApolloListener ... | |||
// NewApolloListener new an apolloListener |
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.
// NewApolloListener new an apolloListener | |
// NewApolloListener creates a new apolloListener |
config_center/apollo/listener.go
Outdated
func (a *apolloListener) AddListener(l config_center.ConfigurationListener) { | ||
if _, ok := a.listeners[l]; !ok { | ||
a.listeners[l] = struct{}{} | ||
agollo.AddChangeListener(a) | ||
} | ||
} | ||
|
||
// RemoveListener ... | ||
// RemoveListener remove listeners of apollo |
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.
// RemoveListener remove listeners of apollo | |
// RemoveListener removes listeners of apollo |
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.
good job, but you'd better merge this branch into origin/develop branch
What this PR does:
Add comments for config_center
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: