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

Commit

Permalink
Running a node without a database set in config is a bug, not a user …
Browse files Browse the repository at this point in the history
…error
  • Loading branch information
cecton authored and bkchr committed Feb 24, 2020
1 parent ef67096 commit 71b8882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ pub fn new_full<Runtime, Dispatch, Extrinsic>(
let is_authority = config.roles.is_authority() && !is_collator;
let force_authoring = config.force_authoring;
let max_block_data_size = max_block_data_size;
let db_path = if let Some(DatabaseConfig::Path { ref path, .. }) = config.database {
let db_path = if let DatabaseConfig::Path { ref path, .. } = config.expect_database() {
path.clone()
} else {
return Err("Starting a Polkadot service with a custom database isn't supported".to_string().into());
Expand Down

0 comments on commit 71b8882

Please sign in to comment.