From d278522399a4b5ba2b720f6c169255057a4c769e Mon Sep 17 00:00:00 2001 From: postables Date: Thu, 30 Apr 2020 14:53:52 -0700 Subject: [PATCH] badger: remove upgrade warning as its no longer useful --- badger/datastore.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/badger/datastore.go b/badger/datastore.go index 34aed6f..254d872 100644 --- a/badger/datastore.go +++ b/badger/datastore.go @@ -3,9 +3,7 @@ package dsbadger import ( "context" "errors" - "fmt" "log" - "strings" "time" badger "github.com/dgraph-io/badger/v2" @@ -133,9 +131,6 @@ func NewDatastore(path string, options *Options) (*Datastore, error) { kv, err := badger.Open(opt) if err != nil { - if strings.HasPrefix(err.Error(), "manifest has unsupported version:") { - err = fmt.Errorf("unsupported badger version, use github.com/ipfs/badgerds-upgrade to upgrade: %s", err.Error()) - } return nil, err }