8
8
"io"
9
9
"runtime"
10
10
11
+ "github.com/bodgit/plumbing"
11
12
"github.com/bodgit/rvz/internal/util"
12
- "github.com/bodgit/rvz/internal/zero"
13
13
"golang.org/x/sync/errgroup"
14
14
)
15
15
@@ -81,7 +81,7 @@ func (pr *partReader) readGroup(i int) error {
81
81
var (
82
82
rc io.ReadCloser
83
83
err error
84
- zr = zero . NewReader ()
84
+ zr = plumbing . DevZero ()
85
85
r io.Reader
86
86
)
87
87
@@ -110,7 +110,7 @@ func (pr *partReader) readGroup(i int) error {
110
110
_ , _ = pr .h0 [j ].Write (h .Sum (nil ))
111
111
}
112
112
113
- _ , _ = io .CopyN (pr .h0 [j ], zero . NewReader (), h0Padding )
113
+ _ , _ = io .CopyN (pr .h0 [j ], plumbing . DevZero (), h0Padding )
114
114
}
115
115
116
116
return nil
@@ -129,7 +129,7 @@ func (pr *partReader) writeHashes() {
129
129
_ , _ = pr .h1 [i ].Write (h .Sum (nil ))
130
130
}
131
131
132
- _ , _ = io .CopyN (pr .h1 [i ], zero . NewReader (), h1Padding )
132
+ _ , _ = io .CopyN (pr .h1 [i ], plumbing . DevZero (), h1Padding )
133
133
}
134
134
135
135
// Calculate the H2 hashes
@@ -141,7 +141,7 @@ func (pr *partReader) writeHashes() {
141
141
_ , _ = pr .h2 .Write (h .Sum (nil ))
142
142
}
143
143
144
- _ , _ = io .CopyN (pr .h2 , zero . NewReader (), h2Padding )
144
+ _ , _ = io .CopyN (pr .h2 , plumbing . DevZero (), h2Padding )
145
145
}
146
146
147
147
//nolint:gochecknoglobals
0 commit comments