mirror of https://github.com/grpc/grpc-go.git
xdsclient: use top-level server list if authority specific list is empty (#5491)
This commit is contained in:
parent
e02f27d969
commit
9ba66f1b84
|
|
@ -54,7 +54,9 @@ func (c *clientImpl) findAuthority(n *xdsresource.Name) (_ *authority, unref fun
|
|||
if !ok {
|
||||
return nil, nil, fmt.Errorf("xds: failed to find authority %q", authority)
|
||||
}
|
||||
config = cfg.XDSServer
|
||||
if cfg.XDSServer != nil {
|
||||
config = cfg.XDSServer
|
||||
}
|
||||
}
|
||||
|
||||
a, err := c.newAuthorityLocked(config)
|
||||
|
|
|
|||
Loading…
Reference in New Issue