Improve active handling for controllers

This commit is contained in:
Tobias Reisinger 2023-11-28 00:19:15 +01:00
parent ec461a1a14
commit 6459804e1f
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
7 changed files with 87 additions and 35 deletions
emgauwa-controller/src

View file

@ -28,7 +28,6 @@ async fn create_this_controller(
&ControllerUid::default(),
&settings.name,
i64::try_from(settings.relays.len()).expect("Too many relays"),
true,
)
.await
.expect("Failed to create controller")
@ -86,7 +85,7 @@ async fn main() {
.collect();
let db_controller = db_controller
.update(&mut conn, &db_controller.name, db_relays.len() as i64, true)
.update(&mut conn, &db_controller.name, db_relays.len() as i64)
.await
.unwrap();