mirror of
https://github.com/distribution/distribution.git
synced 2025-09-20 10:47:26 +00: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:
@@ -127,7 +127,7 @@ func newCloudFrontStorageMiddleware(storageDriver storagedriver.StorageDriver, o
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("invalid updatefrequency: %s", err)
|
return nil, fmt.Errorf("invalid updatefrequency: %s", err)
|
||||||
}
|
}
|
||||||
duration = updateFreq
|
updateFrequency = updateFreq
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user