Skip to content

Commit

Permalink
badger: remove upgrade warning as its no longer useful
Browse files Browse the repository at this point in the history
  • Loading branch information
postables committed Apr 30, 2020
1 parent 746435b commit d278522
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions badger/datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ package dsbadger
import (
"context"
"errors"
"fmt"
"log"
"strings"
"time"

badger "github.com/dgraph-io/badger/v2"
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit d278522

Please sign in to comment.