Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 71b8882

Browse files
cectonbkchr
authored andcommitted
Running a node without a database set in config is a bug, not a user error
1 parent ef67096 commit 71b8882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

service/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ pub fn new_full<Runtime, Dispatch, Extrinsic>(
272272
let is_authority = config.roles.is_authority() && !is_collator;
273273
let force_authoring = config.force_authoring;
274274
let max_block_data_size = max_block_data_size;
275-
let db_path = if let Some(DatabaseConfig::Path { ref path, .. }) = config.database {
275+
let db_path = if let DatabaseConfig::Path { ref path, .. } = config.expect_database() {
276276
path.clone()
277277
} else {
278278
return Err("Starting a Polkadot service with a custom database isn't supported".to_string().into());

0 commit comments

Comments
 (0)