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:
Richard Scothern
2016-06-13 17:35:06 -07:00
parent 1fc752c718
commit ccfa25cf00
3 changed files with 5 additions and 5 deletions

View File

@@ -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
}