mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
fix(healthcheck): don't allow panics to exit coderd (#7276)
This commit is contained in:
@ -250,7 +250,8 @@ func New(options *Options) *API {
|
||||
if options.HealthcheckFunc == nil {
|
||||
options.HealthcheckFunc = func(ctx context.Context) (*healthcheck.Report, error) {
|
||||
return healthcheck.Run(ctx, &healthcheck.ReportOptions{
|
||||
DERPMap: options.DERPMap.Clone(),
|
||||
AccessURL: options.AccessURL,
|
||||
DERPMap: options.DERPMap.Clone(),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user