diff --git a/cache.go b/cache.go index 8fdd55b..319c653 100644 --- a/cache.go +++ b/cache.go @@ -5,7 +5,7 @@ import ( "sync" "sync/atomic" - "github.com/cespare/xxhash" + "github.com/cespare/xxhash/v2" ) const ( diff --git a/go.mod b/go.mod index a0e367a..0639f40 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/coocood/freecache go 1.13 -require github.com/cespare/xxhash v1.1.0 +require github.com/cespare/xxhash/v2 v2.1.2 diff --git a/go.sum b/go.sum index 362bcd2..507c3fc 100644 --- a/go.sum +++ b/go.sum @@ -1,4 +1,2 @@ -github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= -github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= -github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE= +github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=