Skip to content
Snippets Groups Projects

Resolve "Rooter: create conf thread to write config changes"

Merged Éloïs requested to merge 101-rooter-create-conf-thread-to-write-config-changes into dev
4 files
+ 69
13
Compare changes
  • Side-by-side
  • Inline

Files

+ 5
3
@@ -287,15 +287,17 @@ impl<'a, 'b: 'a> DuniterCore<'b, 'a, DuRsConf> {
@@ -287,15 +287,17 @@ impl<'a, 'b: 'a> DuniterCore<'b, 'a, DuRsConf> {
self.user_command = Some(UserCommand::ListModules(ListModulesOpt::from_clap(matches)));
self.user_command = Some(UserCommand::ListModules(ListModulesOpt::from_clap(matches)));
// Start rooter thread
// Start rooter thread
self.rooter_sender = Some(rooter::start_rooter::<DuRsConf>(0, vec![]));
self.rooter_sender = Some(rooter::start_rooter(0, profile.clone(), conf, vec![]));
true
true
} else if let Some(_matches) = cli_args.subcommand_matches("start") {
} else if let Some(_matches) = cli_args.subcommand_matches("start") {
// Store user command
// Store user command
self.user_command = Some(UserCommand::Start());
self.user_command = Some(UserCommand::Start());
// Start rooter thread
// Start rooter thread
self.rooter_sender = Some(rooter::start_rooter::<DuRsConf>(
self.rooter_sender = Some(rooter::start_rooter(
self.run_duration_in_secs,
self.run_duration_in_secs,
 
profile.clone(),
 
conf,
external_followers,
external_followers,
));
));
true
true
@@ -314,7 +316,7 @@ impl<'a, 'b: 'a> DuniterCore<'b, 'a, DuRsConf> {
@@ -314,7 +316,7 @@ impl<'a, 'b: 'a> DuniterCore<'b, 'a, DuRsConf> {
verif_hashs: opts.unsafe_mode,
verif_hashs: opts.unsafe_mode,
}));
}));
// Start rooter thread
// Start rooter thread
self.rooter_sender = Some(rooter::start_rooter::<DuRsConf>(0, vec![]));
self.rooter_sender = Some(rooter::start_rooter(0, profile.clone(), conf, vec![]));
true
true
} else if let Some(matches) = cli_args.subcommand_matches("sync_ts") {
} else if let Some(matches) = cli_args.subcommand_matches("sync_ts") {
let opts = SyncTsOpt::from_clap(matches);
let opts = SyncTsOpt::from_clap(matches);
Loading