refactor(route): improve route handling

This commit is contained in:
yusing
2025-06-04 23:17:41 +08:00
parent b670cdbd49
commit 22ab043e06
2 changed files with 59 additions and 11 deletions

View File

@@ -41,7 +41,7 @@ func NewStreamRoute(base *Route) (routes.Route, gperr.Error) {
// Start implements task.TaskStarter.
func (r *StreamRoute) Start(parent task.Parent) gperr.Error {
r.task = parent.Subtask("stream."+r.Name(), true)
r.task = parent.Subtask("stream."+r.Name(), !r.ShouldExclude())
r.Stream = NewStream(r)
switch {