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

@@ -73,10 +73,6 @@ func (r *StreamRoute) Start(parent task.Parent) gperr.Error {
return nil
}
if err := checkExists(r); err != nil {
return err
}
r.ListenAndServe(r.task.Context(), nil, nil)
r.l = r.l.With().Stringer("rurl", r.ProxyURL).Stringer("laddr", r.LocalAddr()).Logger()
r.l.Info().Msg("stream started")