1
0
mirror of https://github.com/distribution/distribution synced 2024-11-12 05:45:51 +01:00

updatefrequency should not be saved into duration

When updatefrequency is set and is a string, its value should be saved
into updateFrequency, and it shouldn't override duration.

Signed-off-by: Oleg Bulatov <oleg@bulatov.me>
This commit is contained in:
Oleg Bulatov 2021-05-06 17:47:43 +02:00
parent 677772e08d
commit f5709b285a

@ -127,7 +127,7 @@ func newCloudFrontStorageMiddleware(storageDriver storagedriver.StorageDriver, o
if err != nil {
return nil, fmt.Errorf("invalid updatefrequency: %s", err)
}
duration = updateFreq
updateFrequency = updateFreq
}
}