mirror of
https://github.com/yusing/godoxy.git
synced 2026-01-11 22:30:47 +01:00
fix(route): update health monitor initialization to use implementation instance
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user