Skip to content

Commit

Permalink
fix: typo correction (#1924)
Browse files Browse the repository at this point in the history
* fix: typo correction

* fix: replace magic string with constant
  • Loading branch information
zgs225 authored Jun 10, 2022
1 parent 0ccec74 commit 35f4e8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/reference_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func (rc *ReferenceConfig) Refer(srv interface{}) {
invokers := make([]protocol.Invoker, len(rc.urls))
for i, u := range rc.urls {
if u.Protocol == constant.ServiceRegistryProtocol {
invoker = extension.GetProtocol("registry").Refer(u)
invoker = extension.GetProtocol(constant.RegistryProtocol).Refer(u)
} else {
invoker = extension.GetProtocol(u.Protocol).Refer(u)
}
Expand Down
2 changes: 1 addition & 1 deletion remoting/xds/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ import (
)

var (
DiscoverLocalError = errors.New("Discovery local Pod's host from xds, failed please register service with endpoint to k8s ")
DiscoverLocalError = errors.New("Discovery local Pod's host from xds failed, please register service with endpoint to k8s ")
DiscoverIstiodPodIpError = errors.New("Discovery istiod Pod's ip from xds failed, please register service with endpoint to k8s ")
)

0 comments on commit 35f4e8c

Please sign in to comment.