fix: conflict error on load-balanced and excluded routes

This commit is contained in:
yusing
2025-06-05 01:16:53 +08:00
parent 44ef351840
commit d3568d9c35
4 changed files with 41 additions and 6 deletions

View File

@@ -6,6 +6,9 @@ import (
)
func checkExists(r routes.Route) gperr.Error {
if r.UseLoadBalance() { // skip checking for load balanced routes
return nil
}
var (
existing routes.Route
ok bool