fix FromDatastore to not do double adapting
This commit is contained in:
parent
ab52e34e6a
commit
4c05ec28ba
@ -54,7 +54,7 @@ func WrapIDStore(bstore blockstore.Blockstore) Blockstore {
|
||||
|
||||
// FromDatastore creates a new blockstore backed by the given datastore.
|
||||
func FromDatastore(dstore ds.Batching) Blockstore {
|
||||
return WrapIDStore(Adapt(blockstore.NewBlockstore(dstore)))
|
||||
return WrapIDStore(blockstore.NewBlockstore(dstore))
|
||||
}
|
||||
|
||||
type adaptedBlockstore struct {
|
||||
|
Loading…
Reference in New Issue
Block a user