mirror of
https://github.com/linka-cloud/grpc.git
synced 2024-11-21 18:36:25 +00:00
add client address option, fix noop resolver
This commit is contained in:
parent
e8f0a2f03d
commit
1bad45b563
@ -48,5 +48,5 @@ func (n noop) Watch(option ...registry.WatchOption) (registry.Watcher, error) {
|
||||
}
|
||||
|
||||
func (n noop) String() string {
|
||||
return "passthroug"
|
||||
return "noop"
|
||||
}
|
||||
|
@ -34,7 +34,8 @@ type resolvr struct {
|
||||
}
|
||||
|
||||
func (r *resolvr) run() {
|
||||
if r.reg.String() == "passthroug" {
|
||||
if r.reg.String() == "noop" {
|
||||
r.cc.UpdateState(resolver.State{Addresses: []resolver.Address{{Addr: r.target.Endpoint}}})
|
||||
return
|
||||
}
|
||||
var name, version string
|
||||
|
Loading…
Reference in New Issue
Block a user