Skip to content

Commit b9fc54d

Browse files
committed
f: review comments
1 parent 65e14fc commit b9fc54d

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ log = { version = "0.4.22", default-features = false, features = ["std"]}
103103

104104
vss-client = "0.3"
105105
prost = { version = "0.11.6", default-features = false}
106-
criterion = { version = "0.7.0", features = ["async_tokio"] }
107106

108107
[target.'cfg(windows)'.dependencies]
109108
winapi = { version = "0.3", features = ["winbase"] }
@@ -115,6 +114,7 @@ lightning = { version = "0.2.0-beta1", features = ["std", "_test_utils"] }
115114
#lightning = { path = "../rust-lightning/lightning", features = ["std", "_test_utils"] }
116115
proptest = "1.0.0"
117116
regex = "1.5.6"
117+
criterion = { version = "0.7.0", features = ["async_tokio"] }
118118

119119
[target.'cfg(not(no_download))'.dev-dependencies]
120120
electrsd = { version = "0.35.0", default-features = false, features = ["legacy", "esplora_a33e97e1", "corepc-node_27_2"] }

tests/common/mod.rs

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -410,21 +410,14 @@ pub(crate) fn setup_node_for_async_payments(
410410

411411
builder.set_async_payments_role(async_payments_role).unwrap();
412412

413-
let kv_store: Arc<DynStore> = match config.store_type {
413+
let node = match config.store_type {
414414
TestStoreType::TestSyncStore => {
415-
Arc::new(TestSyncStore::new(config.node_config.storage_dir_path.into()))
415+
let kv_store = Arc::new(TestSyncStore::new(config.node_config.storage_dir_path.into()));
416+
builder.build_with_store(kv_store).unwrap()
416417
},
417-
TestStoreType::Sqlite => Arc::new(
418-
SqliteStore::new(
419-
config.node_config.storage_dir_path.into(),
420-
Some(SQLITE_DB_FILE_NAME.to_string()),
421-
Some(KV_TABLE_NAME.to_string()),
422-
)
423-
.unwrap(),
424-
),
418+
TestStoreType::Sqlite => builder.build().unwrap(),
425419
};
426420

427-
let node = builder.build_with_store(kv_store).unwrap();
428421
node.start().unwrap();
429422
assert!(node.status().is_running);
430423
assert!(node.status().latest_fee_rate_cache_update_timestamp.is_some());

0 commit comments

Comments
 (0)