Merge pull request #1594 from aptly-dev/fix/s3-race

s3: fix race conditions
This commit is contained in:
André Roth authored and GitHub committed 2026-06-19 13:31:12 +02:00
commit 48907fc915
2 files changed
+33 -9

No files matched your search

+2 -1
View File
@@ -14,7 +14,8 @@ import (
// @Router /api/s3 [get]
func apiS3List(c *gin.Context) {
keys := []string{}
for k := range context.Config().S3PublishRoots {
s3Roots := context.Config().S3PublishRoots
for k := range s3Roots {
keys = append(keys, k)
}
c.JSON(200, keys)