From 865b06b7fe2fe44ffc04cdec0af07aa2a24e7733 Mon Sep 17 00:00:00 2001 From: Konstantin Lebedev Date: Tue, 17 Aug 2021 13:06:48 +0500 Subject: [PATCH] The IEEE assembler optimizations has been submitted and will be part of the Go 1.6 standard library. https://github.com/klauspost/crc32 --- go.mod | 3 +-- weed/storage/needle/crc.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 62df38f1d..d00ecb4c9 100644 --- a/go.mod +++ b/go.mod @@ -45,7 +45,6 @@ require ( github.com/karlseguin/ccache/v2 v2.0.7 github.com/klauspost/compress v1.10.9 // indirect github.com/klauspost/cpuid v1.2.1 // indirect - github.com/klauspost/crc32 v1.2.0 github.com/klauspost/reedsolomon v1.9.2 github.com/kurin/blazer v0.5.3 github.com/lib/pq v1.10.0 @@ -82,7 +81,7 @@ require ( gocloud.dev v0.20.0 gocloud.dev/pubsub/natspubsub v0.20.0 gocloud.dev/pubsub/rabbitpubsub v0.20.0 - golang.org/x/image v0.0.0-20200119044424-58c23975cae1 // indirect + golang.org/x/image v0.0.0-20200119044424-58c23975cae1 golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40 golang.org/x/tools v0.0.0-20201124115921-2c860bdd6e78 diff --git a/weed/storage/needle/crc.go b/weed/storage/needle/crc.go index 4476631c2..b7d3edd83 100644 --- a/weed/storage/needle/crc.go +++ b/weed/storage/needle/crc.go @@ -4,7 +4,7 @@ import ( "fmt" "io" - "github.com/klauspost/crc32" + "hash/crc32" "github.com/chrislusf/seaweedfs/weed/util" )