Skip to content

Commit 031e599

Browse files
committed
do not double-wrap KV stores
1 parent 1cbc540 commit 031e599

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

node/database.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func newLevelDBDatabase(file string, cache int, handles int, namespace string, r
109109
return nil, err
110110
}
111111
log.Info("Using LevelDB as the backing database")
112-
return rawdb.NewDatabase(db), nil
112+
return db, nil
113113
}
114114

115115
// newPebbleDBDatabase creates a persistent key-value database without a freezer
@@ -119,5 +119,5 @@ func newPebbleDBDatabase(file string, cache int, handles int, namespace string,
119119
if err != nil {
120120
return nil, err
121121
}
122-
return rawdb.NewDatabase(db), nil
122+
return db, nil
123123
}

0 commit comments

Comments
 (0)