skip watching routes if client proxy is set, remove later
This commit is contained in:
parent
03d47afe47
commit
39bd6a6ced
@ -623,6 +623,12 @@ func NewProxy(opts ...proxy.Option) proxy.Proxy {
|
|||||||
p.Links = options.Links
|
p.Links = options.Links
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: remove this cruft
|
||||||
|
// skip watching routes if proxy is set
|
||||||
|
if len(p.Client.Options().Proxy) > 0 {
|
||||||
|
return p
|
||||||
|
}
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
// continuously attempt to watch routes
|
// continuously attempt to watch routes
|
||||||
for {
|
for {
|
||||||
|
Loading…
Reference in New Issue
Block a user