Add extra call of flushPart to avoid of losing pendingBytes

Signed-off-by: Maksym Trofimenko <maksym@container-registry.com>
This commit is contained in:
Maksym Trofimenko 2023-06-12 19:47:59 +01:00
parent 6a57630cf4
commit 4b4747a8cc

View file

@ -1539,5 +1539,5 @@ func (w *writer) flushPart() error {
}) })
w.readyPart = w.pendingPart w.readyPart = w.pendingPart
w.pendingPart = nil w.pendingPart = nil
return nil return w.flushPart()
} }