diff --git a/models/etcd/asset_updater.go b/models/etcd/asset_updater.go index 90ec2fd0..98c252ab 100644 --- a/models/etcd/asset_updater.go +++ b/models/etcd/asset_updater.go @@ -8,6 +8,7 @@ import ( "io" "math/rand" "net/http" + "slices" "strconv" "time" @@ -41,6 +42,10 @@ RETRY: return nil } + if slices.Contains(a.URLs, d.myURL("/api/v1/assets", a.Name)) { + return nil + } + a.URLs = append(a.URLs, d.myURL("/api/v1/assets", a.Name)) key := KeyAssets + a.Name