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 22e8510f3f
commit d2e5d5c22c
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
}