From 6820f071511ea90e04f759e6de02502ae828022f Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 8 Mar 2026 13:33:47 +0800 Subject: internal/utils: Rename WriteProgressf to FprintfBestEffort --- format/pack/ingest/thin_fix.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'format/pack/ingest/thin_fix.go') diff --git a/format/pack/ingest/thin_fix.go b/format/pack/ingest/thin_fix.go index b1d8ae7c..f97c0776 100644 --- a/format/pack/ingest/thin_fix.go +++ b/format/pack/ingest/thin_fix.go @@ -13,7 +13,7 @@ func maybeFixThin(state *ingestState) error { return nil } - utils.WriteProgressf( + utils.FprintfBestEffort( state.opts.Progress, "fixing thin pack: %d unresolved bases\r", len(state.unresolvedRefDeltas), @@ -57,7 +57,7 @@ func maybeFixThin(state *ingestState) error { total := len(baseIDs) if total > 0 { - utils.WriteProgressf(state.opts.Progress, "fixing thin pack: 0%% (0/%d)\r", total) + utils.FprintfBestEffort(state.opts.Progress, "fixing thin pack: 0%% (0/%d)\r", total) } for i, id := range baseIDs { @@ -75,7 +75,7 @@ func maybeFixThin(state *ingestState) error { done := i + 1 percent := done * 100 / total - utils.WriteProgressf(state.opts.Progress, "fixing thin pack: %3d%% (%d/%d)\r", percent, done, total) + utils.FprintfBestEffort(state.opts.Progress, "fixing thin pack: %3d%% (%d/%d)\r", percent, done, total) } err = rewritePackHeaderAndTrailer(state) @@ -84,7 +84,7 @@ func maybeFixThin(state *ingestState) error { } if state.thinFixed { - utils.WriteProgressf(state.opts.Progress, "fixing thin pack: 100%% (%d/%d), done.\n", total, total) + utils.FprintfBestEffort(state.opts.Progress, "fixing thin pack: 100%% (%d/%d), done.\n", total, total) } return nil -- cgit v1.3.1-10-gc9f91