Skip to content

[Enhancement] update the NamingExample in Nacos 2.x #5689

@brotherlu-xcq

Description

@brotherlu-xcq

Describe the bug

naming.registerInstance("nacos.test.3", "2.2.2.2", 9999, "DEFAULT");

update the NamingExample in Nacos 2.x, as we know, Nacos 2.x use grpc connection to bind Client with Server, one Client can only register one Instance. So I think we can update the NamingExample, or else it will confuse the user.

Expected behavior
update the NamingExample

Acutally behavior

How to Reproduce
Steps to reproduce the behavior:
run the NamingExample, you will get no instanse.

Desktop (please complete the following information):

  • OS: [e.g. Centos]
  • Version [2.0.1]
  • Module [example]

Additional context
no

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions