Skip to content

Commit

Permalink
downgrade badger, ristretto, and klauspost/compress (#697)
Browse files Browse the repository at this point in the history
  • Loading branch information
lazynina authored Nov 5, 2024
1 parent 3e2c00a commit 79b0613
Show file tree
Hide file tree
Showing 9 changed files with 62 additions and 19 deletions.
2 changes: 1 addition & 1 deletion cmd/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/deso-protocol/backend/routes"
coreCmd "github.com/deso-protocol/core/cmd"
"github.com/deso-protocol/core/lib"
"github.com/dgraph-io/badger/v4"
"github.com/dgraph-io/badger/v3"
"github.com/golang/glog"
"github.com/kevinburke/twilio-go"
)
Expand Down
10 changes: 6 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require (
github.com/deso-protocol/core v1.2.9
github.com/deso-protocol/go-deadlock v1.0.1
github.com/deso-protocol/uint256 v1.3.2
github.com/dgraph-io/badger/v4 v4.3.1
github.com/dgraph-io/badger/v3 v3.2103.5
github.com/fatih/structs v1.1.0
github.com/golang-jwt/jwt/v4 v4.5.0
github.com/golang/glog v1.2.2
Expand All @@ -32,7 +32,7 @@ require (
github.com/sendgrid/sendgrid-go v3.16.0+incompatible
github.com/spf13/cobra v1.8.1
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.19.0
github.com/spf13/viper v1.18.2
github.com/stretchr/testify v1.9.0
github.com/tyler-smith/go-bip39 v1.1.0
golang.org/x/crypto v0.28.0
Expand Down Expand Up @@ -72,6 +72,7 @@ require (
github.com/btcsuite/btclog v0.0.0-20241017175713-3428138b75c7 // indirect
github.com/bwesterb/go-ristretto v1.2.3 // indirect
github.com/census-instrumentation/opencensus-proto v0.4.1 // indirect
github.com/cespare/xxhash v1.1.0 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/cloudflare/circl v1.5.0 // indirect
github.com/cncf/xds/go v0.0.0-20240905190251-b4127c9b8d78 // indirect
Expand All @@ -80,7 +81,7 @@ require (
github.com/decred/dcrd/container/lru v1.0.0 // indirect
github.com/decred/dcrd/crypto/blake256 v1.1.0 // indirect
github.com/deso-protocol/go-merkle-tree v1.0.0 // indirect
github.com/dgraph-io/ristretto v1.0.0 // indirect
github.com/dgraph-io/ristretto v0.2.0 // indirect
github.com/dustin/go-humanize v1.0.1 // indirect
github.com/eapache/queue/v2 v2.0.0-20230407133247-75960ed334e4 // indirect
github.com/ebitengine/purego v0.8.0 // indirect
Expand All @@ -101,6 +102,7 @@ require (
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect
github.com/google/flatbuffers v24.3.25+incompatible // indirect
github.com/google/go-querystring v1.1.0 // indirect
github.com/google/pprof v0.0.0-20241009165004-a3522334989c // indirect
Expand All @@ -121,7 +123,7 @@ require (
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
github.com/kevinburke/go-types v0.0.0-20240719050749-165e75e768f7 // indirect
github.com/kevinburke/rest v0.0.0-20240617045629-3ed0ad3487f0 // indirect
github.com/klauspost/compress v1.17.11 // indirect
github.com/klauspost/compress v1.17.1 // indirect
github.com/kyokomi/emoji/v2 v2.2.13 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
Expand Down
57 changes: 49 additions & 8 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion routes/exchange_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
coreCmd "github.com/deso-protocol/core/cmd"
"github.com/deso-protocol/core/lib"

"github.com/dgraph-io/badger/v4"
"github.com/dgraph-io/badger/v3"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion routes/global_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/deso-protocol/core/lib"

"github.com/dgraph-io/badger/v4"
"github.com/dgraph-io/badger/v3"
"github.com/nyaruka/phonenumbers"
"github.com/pkg/errors"
)
Expand Down
2 changes: 1 addition & 1 deletion routes/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/tyler-smith/go-bip39"

"github.com/deso-protocol/core/lib"
"github.com/dgraph-io/badger/v4"
"github.com/dgraph-io/badger/v3"
"github.com/golang/glog"
"github.com/kevinburke/twilio-go"
muxtrace "gopkg.in/DataDog/dd-trace-go.v1/contrib/gorilla/mux"
Expand Down
2 changes: 1 addition & 1 deletion routes/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (

"github.com/btcsuite/btcd/btcec/v2"
"github.com/deso-protocol/core/lib"
"github.com/dgraph-io/badger/v4"
"github.com/dgraph-io/badger/v3"
"github.com/golang/glog"
"github.com/gorilla/mux"
"github.com/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion scripts/tools/clear_ancestral_records.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/deso-protocol/backend/scripts/tools/toolslib"
"github.com/deso-protocol/core/lib"
"github.com/dgraph-io/badger/v4"
"github.com/dgraph-io/badger/v3"
"github.com/pkg/errors"
)

Expand Down
2 changes: 1 addition & 1 deletion scripts/tools/toolslib/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package toolslib

import (
"github.com/deso-protocol/core/lib"
"github.com/dgraph-io/badger/v4"
"github.com/dgraph-io/badger/v3"
"github.com/pkg/errors"
)

Expand Down

0 comments on commit 79b0613

Please sign in to comment.