Handle initialization for first ratecontroller run better

This commit is contained in:
Nils Andreas Svee committed 2022-10-29 22:34:52 +02:00
1 parent 13ba3eaffe
commit d5823634ca
2 files changed
+17 -12

No files matched your search

+3 -1
View File
@@ -170,6 +170,8 @@ fn main() -> anyhow::Result<()> {
owd_recent,
reflector_peers_lock,
reselect_sender,
dl_direction,
ul_direction,
)?;
debug!(
@@ -184,7 +186,7 @@ fn main() -> anyhow::Result<()> {
let ratecontroller_handle = thread::Builder::new()
.name("ratecontroller".to_string())
.spawn(move || ratecontroller.run(dl_direction, ul_direction))?;
.spawn(move || ratecontroller.run())?;
threads.push(ratecontroller_handle);