Skip to content

Commit

Permalink
replaced crypto/sha with https://github.com/minio/sha256-simd (#5738)
Browse files Browse the repository at this point in the history
* replaced crypto/sha with https://github.com/minio/sha256-simd

Signed-off-by: utukj <utukphd@gmail.com>

* fixed import grouping

Signed-off-by: utukj <utukphd@gmail.com>

Signed-off-by: utukj <utukphd@gmail.com>
  • Loading branch information
utukJ committed Sep 30, 2022
1 parent 054cb03 commit 6f86ada
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -100,6 +100,7 @@ require (

require (
github.com/efficientgo/core v1.0.0-rc.0
github.com/minio/sha256-simd v1.0.0
go.opentelemetry.io/otel v1.10.0
go.opentelemetry.io/otel/bridge/opentracing v1.10.0
go.opentelemetry.io/otel/sdk v1.9.0
Expand Down Expand Up @@ -200,7 +201,6 @@ require (
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/minio/md5-simd v1.1.2 // indirect
github.com/minio/sha256-simd v1.0.0 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
Expand Down
5 changes: 2 additions & 3 deletions internal/cortex/chunk/schema_util.go
Expand Up @@ -4,17 +4,16 @@
package chunk

import (
"crypto/sha256"
"encoding/base64"
"encoding/binary"
"encoding/hex"
"encoding/json"
"fmt"
"strconv"
"strings"
"sync"

"fmt"

"github.com/minio/sha256-simd"
"github.com/pkg/errors"
"github.com/prometheus/common/model"
"github.com/prometheus/prometheus/model/labels"
Expand Down
2 changes: 1 addition & 1 deletion pkg/block/metadata/hash.go
Expand Up @@ -4,14 +4,14 @@
package metadata

import (
"crypto/sha256"
"encoding/hex"
"fmt"
"io"
"os"
"path/filepath"

"github.com/go-kit/log"
"github.com/minio/sha256-simd"
"github.com/pkg/errors"

"github.com/thanos-io/thanos/pkg/runutil"
Expand Down
2 changes: 1 addition & 1 deletion pkg/reloader/reloader.go
Expand Up @@ -56,7 +56,6 @@ import (
"bytes"
"compress/gzip"
"context"
"crypto/sha256"
"hash"
"io"
"net/http"
Expand All @@ -72,6 +71,7 @@ import (
"github.com/fsnotify/fsnotify"
"github.com/go-kit/log"
"github.com/go-kit/log/level"
"github.com/minio/sha256-simd"
"github.com/pkg/errors"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
Expand Down

0 comments on commit 6f86ada

Please sign in to comment.