Skip to content

Commit

Permalink
change compress function
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Apr 22, 2024
1 parent a65e74b commit 08498a8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ require (
github.com/Masterminds/semver/v3 v3.2.1
github.com/bits-and-blooms/bitset v1.12.0
github.com/cloudflare/cfssl v0.0.0-20180223231731-4e2dcbde5004
github.com/colinlyguo/zstd v0.0.0-20240422153245-68e20236939c
github.com/colinlyguo/zstd v0.0.0-20240422161758-2c9809420237
github.com/docker/docker v25.0.5+incompatible
github.com/gin-contrib/pprof v1.4.0
github.com/gin-gonic/gin v1.9.1
Expand Down
4 changes: 2 additions & 2 deletions common/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4 h1:/inchEIKaYC1Akx+H+g
github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs=
github.com/codahale/rfc6979 v0.0.0-20141003034818-6a90f24967eb h1:EDmT6Q9Zs+SbUoc7Ik9EfrFqcylYqgPZ9ANSbTAntnE=
github.com/codahale/rfc6979 v0.0.0-20141003034818-6a90f24967eb/go.mod h1:ZjrT6AXHbDs86ZSdt/osfBi5qfexBrKUdONk989Wnk4=
github.com/colinlyguo/zstd v0.0.0-20240422153245-68e20236939c h1:k/55pwq7Co77RfFHQpdI7cOghzS9rr1f4WWmYOeuDwU=
github.com/colinlyguo/zstd v0.0.0-20240422153245-68e20236939c/go.mod h1:ok1MRsMAuuMr6NJAbRQDLSWWK2CvXgc7WZnOFTAkhhU=
github.com/colinlyguo/zstd v0.0.0-20240422161758-2c9809420237 h1:CrzIvxsH1WIrWC48fkbDcIGTnz3zrCEIVNM7IjZWeTk=
github.com/colinlyguo/zstd v0.0.0-20240422161758-2c9809420237/go.mod h1:ok1MRsMAuuMr6NJAbRQDLSWWK2CvXgc7WZnOFTAkhhU=
github.com/compose-spec/compose-go/v2 v2.0.0-rc.2 h1:eJ01FpliL/02KvsaPyH1bSLbM1S70yWQUojHVRbyvy4=
github.com/compose-spec/compose-go/v2 v2.0.0-rc.2/go.mod h1:IVsvFyGVhw4FASzUtlWNVaAOhYmakXAFY9IlZ7LAuD8=
github.com/consensys/bavard v0.1.13 h1:oLhMLOFGTLdlda/kma4VOJazblc7IM5y5QPd2A/YjhQ=
Expand Down
2 changes: 1 addition & 1 deletion common/types/encoding/codecv1/codecv1.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ func constructBlobPayload(chunks []*encoding.Chunk, withCompression bool) (*kzg4
blobBytes := batchBytes
if withCompression {
var err error
blobBytes, err = zstd.Compress(nil, batchBytes)
blobBytes, err = zstd.CompressScrollBatchBytes(batchBytes)
if err != nil {
return nil, common.Hash{}, nil, err
}
Expand Down

0 comments on commit 08498a8

Please sign in to comment.