Skip to content

Commit c747192

Browse files
committed
fix(node): actually read config file
1 parent 1d94064 commit c747192

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tox_node/src/node_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ fn parse_config(config_path: &str) -> NodeConfig {
273273
.set_default("lan-discovery", "False").expect("Can't set default value for `lan-discovery`")
274274
.set_default("threads", "1").expect("Can't set default value for `threads`")
275275
.set_default("tcp-connections-limit", "512").expect("Can't set default value for `tcp-connections-limit`")
276-
.add_source(CfgFile::from_str(config_path, CfgFileFormat::Yaml));
276+
.add_source(CfgFile::new(config_path, CfgFileFormat::Yaml));
277277

278278
let config_file = match config_builder.build() {
279279
Ok(cfg) => cfg,

0 commit comments

Comments
 (0)