diff --git a/internal/configs/transportserver.go b/internal/configs/transportserver.go index 5d12f5f8b8..b1db784a38 100644 --- a/internal/configs/transportserver.go +++ b/internal/configs/transportserver.go @@ -147,7 +147,7 @@ func generateTransportServerHealthCheck(upstreamName string, generatedUpstreamNa if u.HealthCheck == nil || !u.HealthCheck.Enabled { return nil, nil } - hc = generateTransportServerHealthCheckWithDefaults(u) + hc = generateTransportServerHealthCheckWithDefaults() hc.Enabled = u.HealthCheck.Enabled hc.Interval = generateTimeWithDefault(u.HealthCheck.Interval, hc.Interval) @@ -176,7 +176,7 @@ func generateTransportServerHealthCheck(upstreamName string, generatedUpstreamNa return hc, match } -func generateTransportServerHealthCheckWithDefaults(up conf_v1alpha1.Upstream) *version2.StreamHealthCheck { +func generateTransportServerHealthCheckWithDefaults() *version2.StreamHealthCheck { return &version2.StreamHealthCheck{ Enabled: false, Timeout: "5s",