-
Notifications
You must be signed in to change notification settings - Fork 931
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
Ftr: consul registry #121
Ftr: consul registry #121
Conversation
Pls add unit test and resolve the conflicts. |
@hxmhlt Ok. |
Codecov Report
@@ Coverage Diff @@
## develop #121 +/- ##
==========================================
+ Coverage 67.54% 67.84% +0.3%
==========================================
Files 90 93 +3
Lines 5537 5729 +192
==========================================
+ Hits 3740 3887 +147
- Misses 1403 1432 +29
- Partials 394 410 +16
Continue to review full report at Codecov.
|
return err | ||
} | ||
} | ||
return nil |
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.
Why only register provider side? Where is consumer's registry?
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.
func (r *consulRegistry) Unregister(url common.URL) error { | ||
var err error | ||
|
||
role, _ := strconv.Atoi(r.URL.GetParam(constant.ROLE_KEY, "")) |
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.
need not to unregister consumer?
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.
What this PR does:
Add consul registry.
Special notes for your reviewer:
First thing that should be noticed is that this pr only support golang 1.12, because native consul api only support 1.12:
Another thing is that there are still a lot of things should be done about consul registry:
@hxmhlt @fangyincheng @AlexStocks