diff options
| author | 2026-03-10 14:07:54 +0800 | |
|---|---|---|
| committer | 2026-03-10 14:07:54 +0800 | |
| commit | c2cb06aa23a1769a0d84756acccf1ac1358f61ef (patch) | |
| tree | 86d991b67542dd8e8509a74c832b749ccf948342 /format/pack/ingest/counting_writer.go | |
| parent | commitgraph: Move out of format/ (diff) | |
*: format/pack -> packfile; format/delta -> delta; delete format
Diffstat (limited to 'format/pack/ingest/counting_writer.go')
| -rw-r--r-- | format/pack/ingest/counting_writer.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/format/pack/ingest/counting_writer.go b/format/pack/ingest/counting_writer.go deleted file mode 100644 index 051ad9d1..00000000 --- a/format/pack/ingest/counting_writer.go +++ /dev/null @@ -1,17 +0,0 @@ -package ingest - -import "io" - -// countingWriter counts bytes written to dst. -type countingWriter struct { - dst io.Writer - n int -} - -// Write writes src to dst and tracks output byte count. -func (writer *countingWriter) Write(src []byte) (int, error) { - n, err := writer.dst.Write(src) - writer.n += n - - return n, err -} |
