aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-02-21 23:21:32 +0800
committerGravatar Runxi Yu2026-02-21 23:21:32 +0800
commit6be32e9cf14a43cf6fb78a29943cb3b0e3d276b2 (patch)
treefd943a5decb8d5e43ed3630d259c749bb1c1ed5a /internal
parentobjectstore/*, repository: Add ReadSize (diff)
signatureNo signature
internal/zlib: Use klauspost/compress/flate for now... v0.1.29
Diffstat (limited to 'internal')
-rw-r--r--internal/zlib/reader.go3
-rw-r--r--internal/zlib/writer.go3
2 files changed, 4 insertions, 2 deletions
diff --git a/internal/zlib/reader.go b/internal/zlib/reader.go
index 6e70fdea..60383ee1 100644
--- a/internal/zlib/reader.go
+++ b/internal/zlib/reader.go
@@ -35,13 +35,14 @@ package zlib
import (
"bufio"
- "compress/flate"
"encoding/binary"
"errors"
"hash"
"hash/adler32"
"io"
"sync"
+
+ "github.com/klauspost/compress/flate"
)
const (
diff --git a/internal/zlib/writer.go b/internal/zlib/writer.go
index 5497f089..608e35f2 100644
--- a/internal/zlib/writer.go
+++ b/internal/zlib/writer.go
@@ -5,13 +5,14 @@
package zlib
import (
- "compress/flate"
"encoding/binary"
"fmt"
"hash"
"hash/adler32"
"io"
"sync"
+
+ "github.com/klauspost/compress/flate"
)
// These constants are copied from the [flate] package, so that code that imports