Skip to content

Commit

Permalink
fix: replace magic string with constant
Browse files Browse the repository at this point in the history
  • Loading branch information
zgs225 committed Jun 8, 2022
1 parent 1e2679b commit 6c4d14b
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 6c4d14b

Please sign in to comment.