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

Feat: SpringCloud subscribe strategy and Adapter add enabled config #425

Merged
merged 5 commits into from May 22, 2022

Conversation

PhilYue
Copy link
Member

@PhilYue PhilYue commented May 15, 2022

What this PR does:

Which issue(s) this PR fixes:

Fixes #
#410

Special notes for your reviewer:

  • SpringCloud firstFetch by subscribe strategy
  • User control Adapter is or not enable
    Does this PR introduce a user-facing change?:

@codecov-commenter
Copy link

codecov-commenter commented May 15, 2022

Codecov Report

Merging #425 (e08cb6e) into develop (bcc678d) will increase coverage by 0.06%.
The diff coverage is 25.00%.

@@             Coverage Diff             @@
##           develop     #425      +/-   ##
===========================================
+ Coverage    37.58%   37.64%   +0.06%     
===========================================
  Files           55       55              
  Lines         3720     3743      +23     
===========================================
+ Hits          1398     1409      +11     
- Misses        2166     2176      +10     
- Partials       156      158       +2     
Impacted Files Coverage Δ
pkg/server/adapter_manager.go 63.33% <0.00%> (-7.04%) ⬇️
pkg/filter/metric/metric.go 34.21% <100.00%> (ø)
pkg/server/cluster_manager.go 38.29% <0.00%> (+2.76%) ⬆️

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 bcc678d...e08cb6e. Read the comment docs.

@mark4z
Copy link
Member

mark4z commented May 15, 2022

Good job

Config map[string]interface{} `yaml:"config" json:"config" mapstructure:"config"` // Config adapter config
ID string `yaml:"id" json:"id"`
Name string `yaml:"name" json:"name"` // Name the adapter unique name
Enabled string `yaml:"enabled" json:"enabled" default:"true"`
Copy link
Member

Choose a reason for hiding this comment

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

'Enabled' why not bool?

Copy link
Member Author

Choose a reason for hiding this comment

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

启动时,加载配置时 默认值函数(default.Set)会吧自定义的值覆盖了

@AlexStocks AlexStocks merged commit 77f13d7 into apache:develop May 22, 2022
@PhilYue PhilYue added this to the v0.5.1 milestone Jul 9, 2022
bobtthp pushed a commit to bobtthp/dubbo-go-pixiu that referenced this pull request Dec 12, 2022
Feat: SpringCloud subscribe strategy and Adapter add enabled config
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.

None yet

5 participants