1
0
Fork 1
mirror of https://github.com/vbatts/tar-split.git synced 2025-07-15 12:19:09 +00:00

*.go: linting project specific code

the pointer to the pool may be useful, but holding on that until I get
benchmarks of memory use to show the benefit.

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2023-03-25 19:20:31 -04:00
parent 19fa6f3d1e
commit 516158dbfb
Signed by: vbatts
GPG key ID: E30EFAA812C6E5ED
4 changed files with 28 additions and 16 deletions

View file

@ -199,7 +199,9 @@ func BenchmarkGetPut(b *testing.B) {
b.Fatal(err)
}
}
fh.Sync()
if err := fh.Sync(); err != nil {
b.Fatal(err)
}
up := NewJSONUnpacker(fh)
for {