Skip to content
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

Merged
merged 1 commit into from
May 30, 2020
Merged

Add comments for config_center #545

merged 1 commit into from
May 30, 2020

Conversation

z2z23n0
Copy link
Contributor

@z2z23n0 z2z23n0 commented May 29, 2020

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?:


@codecov-commenter
Copy link

codecov-commenter commented May 29, 2020

Codecov Report

Merging #545 into develop will decrease coverage by 0.28%.
The diff coverage is n/a.

Impacted file tree graph

@@             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     
Impacted Files Coverage Δ
config_center/apollo/listener.go 100.00% <ø> (ø)
config_center/configurator/mock.go 0.00% <ø> (ø)
config_center/parser/configuration_parser.go 2.25% <ø> (ø)
config_center/zookeeper/listener.go 73.91% <ø> (ø)
protocol/dubbo/listener.go 57.52% <0.00%> (-5.38%) ⬇️
protocol/dubbo/codec.go 72.50% <0.00%> (-5.00%) ⬇️
protocol/dubbo/pool.go 76.71% <0.00%> (-4.57%) ⬇️
filter/filter_impl/hystrix_filter.go 68.64% <0.00%> (-3.39%) ⬇️
protocol/dubbo/readwriter.go 68.29% <0.00%> (-2.44%) ⬇️
cluster/cluster_impl/failback_cluster_invoker.go 78.49% <0.00%> (-2.16%) ⬇️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8a3c02c...517b521. Read the comment docs.

@zouyx
Copy link
Member

zouyx commented May 29, 2020

change base to develop pls

Copy link
Member

@zouyx zouyx left a 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

@@ -49,15 +49,15 @@ func (a *apolloListener) OnChange(changeEvent *agollo.ChangeEvent) {
}
}

// AddListener ...
// AddListener add a listener for apollo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// AddListener add a listener for apollo
// AddListener adds a listener for apollo

@@ -29,7 +29,7 @@ type apolloListener struct {
listeners map[config_center.ConfigurationListener]struct{}
}

// NewApolloListener ...
// NewApolloListener new an apolloListener
Copy link
Member

@zouyx zouyx May 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// NewApolloListener new an apolloListener
// NewApolloListener creates a new apolloListener

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// RemoveListener remove listeners of apollo
// RemoveListener removes listeners of apollo

Copy link
Member

@flycash flycash left a 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

@z2z23n0 z2z23n0 changed the base branch from master to develop May 30, 2020 10:25
@zouyx zouyx merged commit 7d4f1ed into apache:develop May 30, 2020
@zouyx zouyx linked an issue May 31, 2020 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhance] Add comments for config_center directory
5 participants