diff --git a/core/filestorage/fileservice.go b/core/filestorage/fileservice.go index e579e79f35..00b7b5687c 100644 --- a/core/filestorage/fileservice.go +++ b/core/filestorage/fileservice.go @@ -13,7 +13,7 @@ import ( "github.com/anyproto/any-sync/commonfile/fileproto" "github.com/anyproto/any-sync/commonspace/spacestorage" "github.com/anyproto/any-sync/net/rpc/server" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" blocks "github.com/ipfs/go-block-format" "github.com/ipfs/go-cid" "go.uber.org/zap" diff --git a/core/filestorage/filesync/filesyncstore.go b/core/filestorage/filesync/filesyncstore.go index 78738c2dbf..5cd37aa31f 100644 --- a/core/filestorage/filesync/filesyncstore.go +++ b/core/filestorage/filesync/filesyncstore.go @@ -9,7 +9,7 @@ import ( "strconv" "time" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" "go.uber.org/zap" "github.com/anyproto/anytype-heart/util/badgerhelper" diff --git a/core/filestorage/filesync/filesyncstore_test.go b/core/filestorage/filesync/filesyncstore_test.go index 1deefbc14c..bd9547f289 100644 --- a/core/filestorage/filesync/filesyncstore_test.go +++ b/core/filestorage/filesync/filesyncstore_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/core/filestorage/filesync/stats.go b/core/filestorage/filesync/stats.go index 461e3df9ac..466a632b5d 100644 --- a/core/filestorage/filesync/stats.go +++ b/core/filestorage/filesync/stats.go @@ -8,7 +8,7 @@ import ( "time" "github.com/anyproto/any-sync/commonfile/fileproto" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" "github.com/ipfs/go-cid" ipld "github.com/ipfs/go-ipld-format" "github.com/samber/lo" diff --git a/core/filestorage/proxystore.go b/core/filestorage/proxystore.go index 908a8d723c..e0b621d7c5 100644 --- a/core/filestorage/proxystore.go +++ b/core/filestorage/proxystore.go @@ -5,7 +5,7 @@ import ( "fmt" "io" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" dshelp "github.com/ipfs/boxo/datastore/dshelp" blocks "github.com/ipfs/go-block-format" "github.com/ipfs/go-cid" diff --git a/core/filestorage/proxystore_test.go b/core/filestorage/proxystore_test.go index 9fea8b33c6..a206f53b0f 100644 --- a/core/filestorage/proxystore_test.go +++ b/core/filestorage/proxystore_test.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" blocks "github.com/ipfs/go-block-format" "github.com/ipfs/go-cid" format "github.com/ipfs/go-ipld-format" diff --git a/core/indexer/reindex.go b/core/indexer/reindex.go index 683982a6e2..c2d22f3c1a 100644 --- a/core/indexer/reindex.go +++ b/core/indexer/reindex.go @@ -8,7 +8,7 @@ import ( "time" "github.com/anyproto/any-sync/util/slice" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" "github.com/globalsign/mgo/bson" "go.uber.org/zap" diff --git a/core/syncstatus/file_watcher.go b/core/syncstatus/file_watcher.go index a84b74adb7..42b26a7c6b 100644 --- a/core/syncstatus/file_watcher.go +++ b/core/syncstatus/file_watcher.go @@ -10,7 +10,7 @@ import ( "time" "github.com/anyproto/any-sync/commonspace/syncstatus" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" "go.uber.org/zap" "github.com/anyproto/anytype-heart/core/domain" diff --git a/go.mod b/go.mod index d3ee7e3cb8..f42985a62f 100644 --- a/go.mod +++ b/go.mod @@ -16,7 +16,7 @@ require ( github.com/cheggaaa/mb/v3 v3.0.2 github.com/dave/jennifer v1.7.0 github.com/davecgh/go-spew v1.1.1 - github.com/dgraph-io/badger/v3 v3.2103.5 + github.com/dgraph-io/badger/v4 v4.2.0 github.com/dgraph-io/ristretto v0.1.1 github.com/dgtony/collections v0.1.6 github.com/dhowden/tag v0.0.0-20201120070457-d52dcb253c63 @@ -31,6 +31,7 @@ require ( github.com/gogo/status v1.1.1 github.com/golang-jwt/jwt v3.2.2+incompatible github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da + github.com/golang/mock v1.6.0 github.com/golang/snappy v0.0.4 github.com/google/uuid v1.4.0 github.com/gosimple/slug v1.13.1 diff --git a/go.sum b/go.sum index e9d43399f9..8aa04fc3d5 100644 --- a/go.sum +++ b/go.sum @@ -238,8 +238,8 @@ github.com/dgraph-io/badger v1.5.5-0.20190226225317-8115aed38f8f/go.mod h1:VZxzA github.com/dgraph-io/badger v1.6.0-rc1/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4= github.com/dgraph-io/badger v1.6.0/go.mod h1:zwt7syl517jmP8s94KqSxTlM6IMsdhYy6psNgSztDR4= github.com/dgraph-io/badger v1.6.1/go.mod h1:FRmFw3uxvcpa8zG3Rxs0th+hCLIuaQg8HlNV5bjgnuU= -github.com/dgraph-io/badger/v3 v3.2103.5 h1:ylPa6qzbjYRQMU6jokoj4wzcaweHylt//CH0AKt0akg= -github.com/dgraph-io/badger/v3 v3.2103.5/go.mod h1:4MPiseMeDQ3FNCYwRbbcBOGJLf5jsE0PPFzRiKjtcdw= +github.com/dgraph-io/badger/v4 v4.2.0 h1:kJrlajbXXL9DFTNuhhu9yCx7JJa4qpYWxtE8BzuWsEs= +github.com/dgraph-io/badger/v4 v4.2.0/go.mod h1:qfCqhPoWDFJRx1gp5QwwyGo8xk1lbHUxvK9nK0OGAak= github.com/dgraph-io/ristretto v0.0.2/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8= github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA= @@ -403,6 +403,8 @@ github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= +github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= +github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a1/R87v0= github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= @@ -422,7 +424,6 @@ github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaS github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= @@ -723,7 +724,6 @@ github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+o github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= github.com/klauspost/compress v1.17.2 h1:RlWWUY/Dr4fL8qk9YG7DTZ7PDgME2V4csBXA8L/ixi4= github.com/klauspost/compress v1.17.2/go.mod h1:ntbaceVETuRiXiv4DpjP66DpAtAGkEQskQzEyD//IeE= github.com/klauspost/cpuid/v2 v2.0.4/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg= @@ -1744,6 +1744,7 @@ golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4f golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= +golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= diff --git a/pkg/lib/datastore/clientds/clientds.go b/pkg/lib/datastore/clientds/clientds.go index 9ab7deb785..cccb35fe05 100644 --- a/pkg/lib/datastore/clientds/clientds.go +++ b/pkg/lib/datastore/clientds/clientds.go @@ -8,8 +8,8 @@ import ( "time" "github.com/anyproto/any-sync/app" - "github.com/dgraph-io/badger/v3" - "github.com/dgraph-io/badger/v3/options" + "github.com/dgraph-io/badger/v4" + "github.com/dgraph-io/badger/v4/options" "github.com/hashicorp/go-multierror" ds "github.com/ipfs/go-datastore" "go.uber.org/zap" diff --git a/pkg/lib/datastore/datastore.go b/pkg/lib/datastore/datastore.go index 73ae549244..651dc5a294 100644 --- a/pkg/lib/datastore/datastore.go +++ b/pkg/lib/datastore/datastore.go @@ -4,7 +4,7 @@ import ( "context" "github.com/anyproto/any-sync/app" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" ) const CName = "datastore" diff --git a/pkg/lib/localstore/filestore/files.go b/pkg/lib/localstore/filestore/files.go index e88ad5a29b..22a14dbcfb 100644 --- a/pkg/lib/localstore/filestore/files.go +++ b/pkg/lib/localstore/filestore/files.go @@ -5,7 +5,7 @@ import ( "fmt" "github.com/anyproto/any-sync/app" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" "github.com/gogo/protobuf/proto" dsCtx "github.com/ipfs/go-datastore" "github.com/samber/lo" diff --git a/pkg/lib/localstore/filestore/files_test.go b/pkg/lib/localstore/filestore/files_test.go index f490c52435..6057a054c6 100644 --- a/pkg/lib/localstore/filestore/files_test.go +++ b/pkg/lib/localstore/filestore/files_test.go @@ -5,7 +5,7 @@ import ( "sync" "testing" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/pkg/lib/localstore/filestore/helpers.go b/pkg/lib/localstore/filestore/helpers.go index 6bd3026631..e38db4e4fd 100644 --- a/pkg/lib/localstore/filestore/helpers.go +++ b/pkg/lib/localstore/filestore/helpers.go @@ -1,7 +1,7 @@ package filestore import ( - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" "github.com/gogo/protobuf/proto" dsCtx "github.com/ipfs/go-datastore" diff --git a/pkg/lib/localstore/objectstore/badger_helpers.go b/pkg/lib/localstore/objectstore/badger_helpers.go index c5a9c0d52f..194aec0cdb 100644 --- a/pkg/lib/localstore/objectstore/badger_helpers.go +++ b/pkg/lib/localstore/objectstore/badger_helpers.go @@ -1,7 +1,7 @@ package objectstore import ( - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" "github.com/anyproto/anytype-heart/util/badgerhelper" ) diff --git a/pkg/lib/localstore/objectstore/delete.go b/pkg/lib/localstore/objectstore/delete.go index 172cf5f044..a75316926f 100644 --- a/pkg/lib/localstore/objectstore/delete.go +++ b/pkg/lib/localstore/objectstore/delete.go @@ -5,7 +5,7 @@ import ( "errors" "fmt" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" "github.com/gogo/protobuf/types" ds "github.com/ipfs/go-datastore" "github.com/samber/lo" diff --git a/pkg/lib/localstore/objectstore/fixture.go b/pkg/lib/localstore/objectstore/fixture.go index c8e97271e4..e907c61f3b 100644 --- a/pkg/lib/localstore/objectstore/fixture.go +++ b/pkg/lib/localstore/objectstore/fixture.go @@ -8,7 +8,7 @@ import ( "testing" "github.com/anyproto/any-sync/app" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" "github.com/gogo/protobuf/types" "github.com/stretchr/testify/require" diff --git a/pkg/lib/localstore/objectstore/objects.go b/pkg/lib/localstore/objectstore/objects.go index 196bb905b8..388d0d8af7 100644 --- a/pkg/lib/localstore/objectstore/objects.go +++ b/pkg/lib/localstore/objectstore/objects.go @@ -10,7 +10,7 @@ import ( "github.com/anyproto/any-sync/app" "github.com/anyproto/any-sync/coordinator/coordinatorproto" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" "github.com/dgraph-io/ristretto" "github.com/gogo/protobuf/proto" "github.com/gogo/protobuf/types" diff --git a/pkg/lib/localstore/objectstore/queries.go b/pkg/lib/localstore/objectstore/queries.go index c98b5a55f0..8962da42d4 100644 --- a/pkg/lib/localstore/objectstore/queries.go +++ b/pkg/lib/localstore/objectstore/queries.go @@ -4,7 +4,7 @@ import ( "fmt" "sort" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" "github.com/anyproto/anytype-heart/pkg/lib/bundle" "github.com/anyproto/anytype-heart/pkg/lib/database" diff --git a/pkg/lib/localstore/objectstore/update.go b/pkg/lib/localstore/objectstore/update.go index fd150c6bbc..d492b871fd 100644 --- a/pkg/lib/localstore/objectstore/update.go +++ b/pkg/lib/localstore/objectstore/update.go @@ -3,7 +3,7 @@ package objectstore import ( "fmt" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" "github.com/gogo/protobuf/proto" "github.com/gogo/protobuf/types" diff --git a/pkg/lib/localstore/stores.go b/pkg/lib/localstore/stores.go index ddd9ad1e8f..124b99d62d 100644 --- a/pkg/lib/localstore/stores.go +++ b/pkg/lib/localstore/stores.go @@ -6,7 +6,7 @@ import ( "fmt" "strings" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" "github.com/dgtony/collections/polymorph" "github.com/dgtony/collections/slices" dsCtx "github.com/ipfs/go-datastore" diff --git a/pkg/lib/localstore/stores_test.go b/pkg/lib/localstore/stores_test.go index 10740ba3ec..310a9931c3 100644 --- a/pkg/lib/localstore/stores_test.go +++ b/pkg/lib/localstore/stores_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/space/spacecore/clientserver/clientserver.go b/space/spacecore/clientserver/clientserver.go index 507c8639c4..1395532a02 100644 --- a/space/spacecore/clientserver/clientserver.go +++ b/space/spacecore/clientserver/clientserver.go @@ -11,7 +11,7 @@ import ( "github.com/anyproto/any-sync/app/logger" "github.com/anyproto/any-sync/net/transport" "github.com/anyproto/any-sync/net/transport/quic" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" "go.uber.org/zap" "github.com/anyproto/anytype-heart/pkg/lib/datastore" diff --git a/space/spacecore/clientserver/portstorage.go b/space/spacecore/clientserver/portstorage.go index 1f7d55135e..ca7bb0f08f 100644 --- a/space/spacecore/clientserver/portstorage.go +++ b/space/spacecore/clientserver/portstorage.go @@ -3,7 +3,7 @@ package clientserver import ( "encoding/binary" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" ) const portKey = "drpc/server/port" diff --git a/space/spacecore/storage/helpers.go b/space/spacecore/storage/helpers.go index d1d5915a47..dac3639e65 100644 --- a/space/spacecore/storage/helpers.go +++ b/space/spacecore/storage/helpers.go @@ -1,7 +1,7 @@ package storage import ( - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" ) func hasDB(db *badger.DB, key []byte) bool { diff --git a/space/spacecore/storage/liststorage.go b/space/spacecore/storage/liststorage.go index f20a76d5b1..30c4bdad7b 100644 --- a/space/spacecore/storage/liststorage.go +++ b/space/spacecore/storage/liststorage.go @@ -6,7 +6,7 @@ import ( "github.com/anyproto/any-sync/commonspace/object/acl/liststorage" "github.com/anyproto/any-sync/consensus/consensusproto" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" ) var ErrIncorrectKey = errors.New("key format is incorrect") diff --git a/space/spacecore/storage/liststorage_test.go b/space/spacecore/storage/liststorage_test.go index e74ebf6cd6..31c03caa58 100644 --- a/space/spacecore/storage/liststorage_test.go +++ b/space/spacecore/storage/liststorage_test.go @@ -6,7 +6,7 @@ import ( "github.com/anyproto/any-sync/commonspace/object/acl/liststorage" "github.com/anyproto/any-sync/consensus/consensusproto" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" "github.com/stretchr/testify/require" ) diff --git a/space/spacecore/storage/spacestorage.go b/space/spacecore/storage/spacestorage.go index abd2ae548b..f92b53ea54 100644 --- a/space/spacecore/storage/spacestorage.go +++ b/space/spacecore/storage/spacestorage.go @@ -9,7 +9,7 @@ import ( "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" "github.com/anyproto/any-sync/commonspace/spacestorage" "github.com/anyproto/any-sync/commonspace/spacesyncproto" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" ) type spaceStorage struct { diff --git a/space/spacecore/storage/storageservice.go b/space/spacecore/storage/storageservice.go index e4aab85392..6389a7e0fe 100644 --- a/space/spacecore/storage/storageservice.go +++ b/space/spacecore/storage/storageservice.go @@ -7,7 +7,7 @@ import ( "github.com/anyproto/any-sync/app" "github.com/anyproto/any-sync/commonspace/spacestorage" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" "golang.org/x/exp/slices" "github.com/anyproto/anytype-heart/pkg/lib/datastore" diff --git a/space/spacecore/storage/treestorage.go b/space/spacecore/storage/treestorage.go index 80e4ca85d1..8938fb452b 100644 --- a/space/spacecore/storage/treestorage.go +++ b/space/spacecore/storage/treestorage.go @@ -5,7 +5,7 @@ import ( "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" ) type treeStorage struct { diff --git a/space/spacecore/storage/treestorage_test.go b/space/spacecore/storage/treestorage_test.go index f974ceca56..b44e3ffd5b 100644 --- a/space/spacecore/storage/treestorage_test.go +++ b/space/spacecore/storage/treestorage_test.go @@ -7,7 +7,7 @@ import ( "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" "github.com/anyproto/any-sync/commonspace/object/tree/treestorage" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" "github.com/stretchr/testify/require" ) diff --git a/space/spacecore/typeprovider/typeprovider.go b/space/spacecore/typeprovider/typeprovider.go index 3830794d32..9b65b5790c 100644 --- a/space/spacecore/typeprovider/typeprovider.go +++ b/space/spacecore/typeprovider/typeprovider.go @@ -11,7 +11,7 @@ import ( "github.com/anyproto/any-sync/app" "github.com/anyproto/any-sync/commonspace/object/tree/treechangeproto" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" "github.com/globalsign/mgo/bson" "github.com/gogo/protobuf/proto" "github.com/ipfs/go-cid" diff --git a/util/badgerhelper/helper.go b/util/badgerhelper/helper.go index 440e7b1aa9..8f95f35efb 100644 --- a/util/badgerhelper/helper.go +++ b/util/badgerhelper/helper.go @@ -5,7 +5,7 @@ import ( "errors" "fmt" - "github.com/dgraph-io/badger/v3" + "github.com/dgraph-io/badger/v4" "github.com/gogo/protobuf/proto" )