Improve active handling for controllers
This commit is contained in:
parent
ec461a1a14
commit
6459804e1f
7 changed files with 87 additions and 35 deletions
emgauwa-controller/src
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue