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

s3: fix race conditions
This commit is contained in:
André Roth
2026-06-19 13:31:12 +02:00
committed by GitHub
2 changed files with 33 additions and 9 deletions
+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)