Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,7 @@ func (s *Proxy) Start() error {
if s.inboundHealthCheckConfig != nil {
var err error
healthFn := func() bool {
// TODO: overly conservative right now. When there are multiple remotes, we should track their health separately
for _, cc := range s.clusterConnections {
if !cc.AcceptingInboundTraffic() {
return false
}
}
// TODO: Rethink health checks. The inbound/outbound traffic availability isn't quite right for a health check
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we not check-in commented code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, dropped the code

return true
}
if s.inboundHealthCheckServer, err = s.startHealthCheckHandler(s.lifetime, newInboundHealthCheck(healthFn, s.logger), *s.inboundHealthCheckConfig); err != nil {
Expand All @@ -143,12 +138,7 @@ func (s *Proxy) Start() error {

if s.outboundHealthCheckConfig != nil {
healthFn := func() bool {
// TODO: overly conservative right now. When there are multiple remotes, we should track their health separately
for _, cc := range s.clusterConnections {
if !cc.AcceptingOutboundTraffic() {
return false
}
}
// TODO: Rethink health checks. The inbound/outbound traffic availability isn't quite right for a health check
return true
}
var err error
Expand Down