reload no longer be skipped when there're errors

This commit is contained in:
yusing 2024-10-20 15:05:04 +08:00
parent c847fe4747
commit a3ab32e9ab

View file

@ -31,7 +31,9 @@ func (handler *EventHandler) Handle(parent task.Task, events []watcher.Event) {
newRoutes, err := handler.provider.LoadRoutesImpl()
if err != nil {
handler.errs.Add(err.Subject("load routes"))
return
if newRoutes.Size() == 0 {
return
}
}
if common.IsDebug {