mirror of
https://github.com/go-kratos/kratos.git
synced 2025-03-17 21:07:54 +02:00
docs: some wrong err msg description
This commit is contained in:
parent
94d674fd4c
commit
72f9cc3518
@ -81,7 +81,7 @@ func New(cli naming_client.INamingClient, opts ...Option) (r *Registry) {
|
||||
// Register the registration.
|
||||
func (r *Registry) Register(_ context.Context, si *registry.ServiceInstance) error {
|
||||
if si.Name == "" {
|
||||
return fmt.Errorf("kratos/nacos: serviceInstance.name cannot is empty")
|
||||
return fmt.Errorf("kratos/nacos: serviceInstance.name can not be empty")
|
||||
}
|
||||
for _, endpoint := range si.Endpoints {
|
||||
u, err := url.Parse(endpoint)
|
||||
|
Loading…
x
Reference in New Issue
Block a user