mirror of
https://github.com/linka-cloud/grpc.git
synced 2025-06-22 09:12:28 +00:00
add client address option, fix noop resolver
This commit is contained in:
@ -34,7 +34,7 @@ type resolvr struct {
|
||||
}
|
||||
|
||||
func (r *resolvr) run() {
|
||||
if r.reg.String() == "noop" {
|
||||
if r.reg.String() == "passthroug" {
|
||||
return
|
||||
}
|
||||
var name, version string
|
||||
@ -68,9 +68,9 @@ func (r *resolvr) run() {
|
||||
}
|
||||
// TODO(adphi): implement
|
||||
switch res.Action {
|
||||
case "create":
|
||||
case registry.Create.String():
|
||||
|
||||
case "delete":
|
||||
case registry.Delete.String():
|
||||
|
||||
}
|
||||
r.cc.UpdateState(resolver.State{Addresses: r.addrs})
|
||||
|
Reference in New Issue
Block a user