Skip to content

Commit

Permalink
more init
Browse files Browse the repository at this point in the history
  • Loading branch information
arnetheduck committed Sep 3, 2024
1 parent 4084b13 commit 918b3b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/test_aristo/test_balancer.nim
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ proc dbTriplet(w: LeafQuartet; rdbPath: string): Result[DbTriplet,AristoError] =
let db = block:
if 0 < rdbPath.len:
let (dbOpts, cfOpts) = DbOptions.init().toRocksDb()
let rc = AristoDbRef.init(RdbBackendRef, rdbPath, dbOpts, cfOpts, [])
let rc = AristoDbRef.init(RdbBackendRef, rdbPath, DbOptions.init(), dbOpts, cfOpts, [])
xCheckRc rc.error == 0:
result = err(rc.error)
rc.value()[0]
Expand Down
2 changes: 1 addition & 1 deletion tests/test_aristo/test_merge_proof.nim
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ proc testMergeProofAndKvpList*(
# New DB with disabled filter slots management
if 0 < rdbPath.len:
let (dbOpts, cfOpts) = DbOptions.init().toRocksDb()
let rc = AristoDbRef.init(RdbBackendRef, DbOptions.init(), rdbPath, dbOpts, cfOpts, [])
let rc = AristoDbRef.init(RdbBackendRef, rdbPath, DbOptions.init(), dbOpts, cfOpts, [])
xCheckRc rc.error == 0
rc.value()[0]
else:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_aristo/test_tx.nim
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ proc testTxMergeAndDeleteOneByOne*(
db = block:
if 0 < rdbPath.len:
let (dbOpts, cfOpts) = DbOptions.init().toRocksDb()
let rc = AristoDbRef.init(RdbBackendRef, rdbPath, dbOpts, cfOpts, [])
let rc = AristoDbRef.init(RdbBackendRef, rdbPath, DbOptions.init(), dbOpts, cfOpts, [])
xCheckRc rc.error == 0
rc.value()[0]
else:
Expand Down Expand Up @@ -368,7 +368,7 @@ proc testTxMergeAndDeleteSubTree*(
db = block:
if 0 < rdbPath.len:
let (dbOpts, cfOpts) = DbOptions.init().toRocksDb()
let rc = AristoDbRef.init(RdbBackendRef, rdbPath, dbOpts, cfOpts, [])
let rc = AristoDbRef.init(RdbBackendRef, rdbPath, DbOptions.init(), dbOpts, cfOpts, [])
xCheckRc rc.error == 0
rc.value()[0]
else:
Expand Down

0 comments on commit 918b3b9

Please sign in to comment.