fix: update code for error handling changes, remove unused code

This commit is contained in:
yusing
2025-04-24 06:24:28 +08:00
parent 43566bbcfd
commit 858f65ee5a
3 changed files with 2 additions and 28 deletions

View File

@@ -319,6 +319,7 @@ func (cfg *Config) loadRouteProviders(providers *config.Providers) gperr.Error {
lenLongestName = len(k)
}
})
results.EnableConcurrency()
cfg.providers.RangeAllParallel(func(_ string, p *proxy.Provider) {
if err := p.LoadRoutes(); err != nil {
errs.Add(err.Subject(p.String()))