mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-11 22:30:47 +01:00
fix(health/http): potential panic when error is tlsErr
This commit is contained in:
@@ -106,6 +106,11 @@ func processHealthResponse(lat time.Duration, err error, getStatusCode func() in
|
|||||||
Detail: err.Error(),
|
Detail: err.Error(),
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
return types.HealthCheckResult{
|
||||||
|
Latency: lat,
|
||||||
|
Healthy: true,
|
||||||
|
Detail: tlsErr.Error(),
|
||||||
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
statusCode := getStatusCode()
|
statusCode := getStatusCode()
|
||||||
|
|||||||
Reference in New Issue
Block a user