content: close writer after opening
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
a463ba33fc
commit
850f8addc2
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ func WriteBlob(ctx context.Context, cs Ingester, ref string, r io.Reader, size i
|
|||
|
||||
return nil // all ready present
|
||||
}
|
||||
defer cw.Close()
|
||||
|
||||
ws, err := cw.Status()
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue