Skip to content

Commit 13fa665

Browse files
committed
Disable health checks
1 parent 106bf88 commit 13fa665

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

proxy/proxy.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,11 @@ func (s *Proxy) Start() error {
138138
healthFn := func() bool {
139139
// TODO: assumes only one mux right now. When there are multiple remotes, we may want to receive them all
140140
// on the same port and do something different here
141-
for _, cc := range s.clusterConnections {
142-
if !cc.AcceptingInboundTraffic() {
143-
return false
144-
}
145-
}
141+
//for _, cc := range s.clusterConnections {
142+
// if !cc.AcceptingInboundTraffic() {
143+
// return false
144+
// }
145+
//}
146146
return true
147147
}
148148
if s.inboundHealthCheckServer, err = s.startHealthCheckHandler(s.lifetime, newInboundHealthCheck(healthFn, s.logger), *s.inboundHealthCheckConfig); err != nil {
@@ -157,11 +157,11 @@ func (s *Proxy) Start() error {
157157
healthFn := func() bool {
158158
// TODO: assumes only one mux right now. When there are multiple remotes, some of them may be healthy
159159
// and others not
160-
for _, cc := range s.clusterConnections {
161-
if !cc.AcceptingOutboundTraffic() {
162-
return false
163-
}
164-
}
160+
//for _, cc := range s.clusterConnections {
161+
// if !cc.AcceptingOutboundTraffic() {
162+
// return false
163+
// }
164+
//}
165165
return true
166166
}
167167
var err error

0 commit comments

Comments
 (0)