Skip to content
This repository has been archived by the owner on May 30, 2022. It is now read-only.

consul registry support #126

Merged
merged 2 commits into from
Dec 3, 2018
Merged

consul registry support #126

merged 2 commits into from
Dec 3, 2018

Conversation

leizhiyuan
Copy link
Contributor

Motivation:

add configure option for consul

Modification:

Describe the idea and modifications you've done.

Result:

Fixes #.

If there is no issue then describe the changes introduced by this PR.

@leizhiyuan leizhiyuan added this to the 5.5.0 milestone Dec 2, 2018
@leizhiyuan
Copy link
Contributor Author

Fix #113

@codecov
Copy link

codecov bot commented Dec 2, 2018

Codecov Report

Merging #126 into 5.x will increase coverage by 0.22%.
The diff coverage is 65%.

Impacted file tree graph

@@             Coverage Diff              @@
##                5.x     #126      +/-   ##
============================================
+ Coverage     54.85%   55.08%   +0.22%     
- Complexity      393      399       +6     
============================================
  Files            53       54       +1     
  Lines          1741     1781      +40     
  Branches        310      316       +6     
============================================
+ Hits            955      981      +26     
- Misses          606      615       +9     
- Partials        180      185       +5
Impacted Files Coverage Δ Complexity Δ
...fa/rpc/boot/config/SofaBootRpcConfigConstants.java 80% <ø> (ø) 1 <0> (ø) ⬇️
...ay/sofa/rpc/boot/SofaBootRpcAutoConfiguration.java 95.83% <100%> (+0.37%) 15 <1> (+1) ⬆️
...lipay/sofa/rpc/boot/config/ConsulConfigurator.java 63.15% <63.15%> (ø) 5 <5> (?)

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 6ababd5...81277e0. Read the comment docs.

Map<String, String> map = parseParam(address);
return new RegistryConfig()
.setAddress(consulAddress)
.setProtocol(SofaBootRpcConfigConstants.REGISTRY_PROTOCOL_ZOOKEEPER)
Copy link
Member

Choose a reason for hiding this comment

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

Wrong constants REGISTRY_PROTOCOL_ZOOKEEPER

Copy link
Contributor Author

Choose a reason for hiding this comment

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

本地改了没提交。刚才提交了

Copy link
Member

@JervyShi JervyShi left a comment

Choose a reason for hiding this comment

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

+1

Copy link
Contributor

@NeGnail NeGnail left a comment

Choose a reason for hiding this comment

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

+1

Copy link
Member

@ujjboy ujjboy left a comment

Choose a reason for hiding this comment

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

+1

@JervyShi JervyShi merged commit f8b7c1a into sofastack:5.x Dec 3, 2018
leizhiyuan added a commit that referenced this pull request Mar 8, 2019
* Consul registry support (#126)

* consul registry support

* fix cr

* Support nacos converter (#130)

* Upgrade version

* Support nacos address converter

* Hystrix switcher (#137)

* support enableHystrix

* support enableHystrix

* hystrix enable

* Add nacos client dependency support. (#148)

* Zk auth support. (#156)

* Server config for rest cors. (#155)

* server config for rest cors

* add test case for cors
leizhiyuan added a commit that referenced this pull request May 21, 2019
* consul registry support

* fix cr
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants