From 7484da43edb6ba3c51502cfd1beef1052f8c75b8 Mon Sep 17 00:00:00 2001 From: Magnus Jungsbluth Date: Wed, 22 Jun 2022 18:02:13 +0200 Subject: [PATCH] Switch xxhash to v2 --- go.mod | 2 +- go.sum | 4 ++-- table/table_test.go | 2 +- y/checksum.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 28da3cc36..09d3a33da 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.12 // replace github.com/dgraph-io/ristretto => /home/amanbansal/go/src/github.com/dgraph-io/ristretto require ( - github.com/cespare/xxhash v1.1.0 + github.com/cespare/xxhash/v2 v2.1.2 github.com/dgraph-io/ristretto v0.1.0 github.com/dustin/go-humanize v1.0.0 github.com/gogo/protobuf v1.3.2 diff --git a/go.sum b/go.sum index cdeb960ea..607cb1890 100644 --- a/go.sum +++ b/go.sum @@ -3,10 +3,10 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03 github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= -github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= -github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= github.com/cespare/xxhash/v2 v2.1.1 h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+qY= github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= +github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= diff --git a/table/table_test.go b/table/table_test.go index ab2cca589..b228fd5a6 100644 --- a/table/table_test.go +++ b/table/table_test.go @@ -29,7 +29,7 @@ import ( "testing" "time" - "github.com/cespare/xxhash" + "github.com/cespare/xxhash/v2" "github.com/dgraph-io/badger/v3/options" "github.com/dgraph-io/badger/v3/y" "github.com/dgraph-io/ristretto" diff --git a/y/checksum.go b/y/checksum.go index 17d60c55d..44b184bec 100644 --- a/y/checksum.go +++ b/y/checksum.go @@ -21,7 +21,7 @@ import ( "github.com/dgraph-io/badger/v3/pb" - "github.com/cespare/xxhash" + "github.com/cespare/xxhash/v2" "github.com/pkg/errors" )