fix(route): update health monitor initialization to use implementation instance

This commit is contained in:
yusing
2025-12-30 21:59:43 +08:00
parent e25ccdbd24
commit e4658a8f09

View File

@@ -406,7 +406,7 @@ func (r *Route) start(parent task.Parent) gperr.Error {
routes.Excluded.Del(r.impl)
})
if r.UseHealthCheck() {
r.HealthMon = monitor.NewMonitor(r)
r.HealthMon = monitor.NewMonitor(r.impl)
err := r.HealthMon.Start(r.task)
return err
}