Skip to content

Commit

Permalink
test: rm cloudflare lz4 deps (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
crimson-gao authored May 29, 2024
1 parent bb33c90 commit 8a198ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ require (
github.com/alibabacloud-go/darabonba-openapi/v2 v2.0.4
github.com/alibabacloud-go/sts-20150401/v2 v2.0.1
github.com/cenkalti/backoff v2.2.1+incompatible
github.com/cloudflare/golz4 v0.0.0-20150217214814-ef862a3cdc58
github.com/go-kit/kit v0.10.0
github.com/gogo/protobuf v1.3.2
github.com/golang/protobuf v1.4.2
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ github.com/clbanning/mxj/v2 v2.5.5 h1:oT81vUeEiQQ/DcHbzSytRngP6Ky9O+L+0Bw0zSJag9
github.com/clbanning/mxj/v2 v2.5.5/go.mod h1:hNiWqW14h+kc+MdF9C6/YoRfjEJoR3ou6tn/Qo+ve2s=
github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
github.com/cloudflare/golz4 v0.0.0-20150217214814-ef862a3cdc58 h1:F1EaeKL/ta07PY/k9Os/UFtwERei2/XzGemhpGnBKNg=
github.com/cloudflare/golz4 v0.0.0-20150217214814-ef862a3cdc58/go.mod h1:EOBUe0h4xcZ5GoxqC5SDxFQ8gwyZPKQoEzownBlhI80=
github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8=
github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI=
github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
Expand Down
7 changes: 4 additions & 3 deletions logstore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"testing"
"time"

lz4 "github.com/cloudflare/golz4"
"github.com/gogo/protobuf/proto"
lz4 "github.com/pierrec/lz4"
"github.com/stretchr/testify/suite"
)

Expand Down Expand Up @@ -457,8 +457,9 @@ func (s *LogstoreTestSuite) TestLogStoreWriteErrorMock() {
body, _ := proto.Marshal(lg)

// Compresse body with lz4
out := make([]byte, lz4.CompressBound(body))
n, _ := lz4.Compress(body, out)
var hashTable [1 << 16]int
out := make([]byte, lz4.CompressBlockBound(len(body)))
n, _ := lz4.CompressBlock(body, out, hashTable[:])

h := map[string]string{
"x-log-compresstype": "lz4",
Expand Down

0 comments on commit 8a198ee

Please sign in to comment.