mirror of
https://github.com/distribution/distribution.git
synced 2025-09-18 08:15:23 +00:00
If resumable digest support is disabled, detct this when closing the blobwriter
and allow the close to continue. Also update the name of the function. Signed-off-by: Richard Scothern <richard.scothern@docker.com>
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
// resumeHashAt is a noop when resumable digest support is disabled.
|
||||
func (bw *blobWriter) resumeDigestAt(ctx context.Context, offset int64) error {
|
||||
func (bw *blobWriter) resumeDigest(ctx context.Context) error {
|
||||
return errResumableDigestNotAvailable
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user