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: register with consul client #10

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rfyiamcool
Copy link

summary

  1. add NewConsulRegisterWithClient function. because app already consul client at startup, don't create client again.
  2. foamt readme.md
  3. I think it is necessary to mark in the document what to do if health check is not used. because some network architectures are complicate, consul cannot connect to the registered node. 😁 It will be more friendly to explain in the documentation.

Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: rfyiamcool
To complete the pull request process, please assign yangruiemma after the PR has been reviewed.
You can assign the PR to them by writing /assign @yangruiemma in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@GuangmingLuo
Copy link
Member

@rfyiamcool Hello,rebase 下 master 代码

@@ -143,7 +147,7 @@ func main() {

## Example

See Server and Client in example/basic or example/custom-config.
See Server and Client in [example/basic](https://github.com/rfyiamcool/registry-consul/tree/main/example/basic) or [example/custom-config](https://github.com/rfyiamcool/registry-consul/tree/main/example/custom-config).
Copy link
Collaborator

Choose a reason for hiding this comment

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

the link should be kitex-contrib/registry-consul

Copy link
Collaborator

Choose a reason for hiding this comment

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

@rfyiamcool 劳烦及时跟进下代码,过久的PR 可能会被关闭哈

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.

3 participants