Skip to content

Commit

Permalink
feat(rust): expose whether the manager is busy or not
Browse files Browse the repository at this point in the history
* Do not expose the list of busy services anymore.
  • Loading branch information
imobachgs committed Jul 30, 2024
1 parent fb123c5 commit afef47b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rust/agama-server/src/manager/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ pub struct ManagerState<'a> {
pub struct InstallerStatus {
/// Current installation phase.
phase: InstallationPhase,
/// List of busy services.
busy: Vec<String>,
/// Whether the service is busy.
is_busy: bool,
/// Whether Agama is running on Iguana.
iguana: bool,
use_iguana: bool,
/// Whether it is possible to start the installation.
can_install: bool,
}
Expand Down Expand Up @@ -183,8 +183,8 @@ async fn installer_status(
let status = InstallerStatus {
phase,
can_install,
busy: state.manager.busy_services().await?,
iguana: state.manager.use_iguana().await?,
is_busy: state.manager.is_busy().await,
use_iguana: state.manager.use_iguana().await?,
};
Ok(Json(status))
}
Expand Down

0 comments on commit afef47b

Please sign in to comment.