diff options
| author | 2026-02-21 23:21:32 +0800 | |
|---|---|---|
| committer | 2026-02-21 23:21:32 +0800 | |
| commit | 6be32e9cf14a43cf6fb78a29943cb3b0e3d276b2 (patch) | |
| tree | fd943a5decb8d5e43ed3630d259c749bb1c1ed5a /internal/zlib | |
| parent | objectstore/*, repository: Add ReadSize (diff) | |
| signature | No signature | |
internal/zlib: Use klauspost/compress/flate for now... v0.1.29
Diffstat (limited to 'internal/zlib')
| -rw-r--r-- | internal/zlib/reader.go | 3 | ||||
| -rw-r--r-- | internal/zlib/writer.go | 3 |
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 |
