refactor(routes): centralize route existence checking

- Removed All routes pool
This commit is contained in:
yusing
2025-09-13 23:49:45 +08:00
parent 2717dc963a
commit 1c080e067d
5 changed files with 28 additions and 26 deletions

View File

@@ -291,6 +291,13 @@ func (r *Route) start(parent task.Parent) gperr.Error {
}
defer close(r.started)
// skip checking for excluded routes
if !r.ShouldExclude() {
if err := checkExists(r); err != nil {
return err
}
}
if err := r.impl.Start(parent); err != nil {
return err
}