mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-22 08:48:43 +02:00
fix(routes): accidentally finished all routes when one route changed
This commit is contained in:
@@ -110,8 +110,6 @@ func (p *Provider) Start(parent task.Parent) gperr.Error {
|
||||
t.Subtask("event_queue", false),
|
||||
providerEventFlushInterval,
|
||||
func(events []events.Event) {
|
||||
routesTask.FinishAndWait("reload routes")
|
||||
routesTask = t.Subtask("routes", false)
|
||||
handler := p.newEventHandler()
|
||||
// routes' lifetime should follow the provider's lifetime
|
||||
handler.Handle(routesTask, events)
|
||||
|
||||
Reference in New Issue
Block a user