skip watching routes if client proxy is set, remove later

This commit is contained in:
Asim Aslam 2020-08-05 18:05:25 +01:00
parent 03d47afe47
commit 39bd6a6ced

View File

@ -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 {