From 4a17412255e294e99f2d11e9b8458e30bbe58292 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 8 Mar 2026 14:15:55 +0800 Subject: format/pack/ingest: Use progress API --- format/pack/ingest/api.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'format/pack/ingest/api.go') diff --git a/format/pack/ingest/api.go b/format/pack/ingest/api.go index 227f6a23..5df09213 100644 --- a/format/pack/ingest/api.go +++ b/format/pack/ingest/api.go @@ -23,6 +23,10 @@ type Options struct { // // When nil, no progress output is emitted. Progress io.Writer + // ProgressFlush flushes transport output after progress writes. + // + // When nil, no explicit flush is attempted. + ProgressFlush func() error // RequireTrailingEOF requires the source to hit EOF after the pack trailer. // // This is suitable for exact pack-file readers, but should be disabled for -- cgit v1.3.1-10-gc9f91