Have burrow gtk use new rpc

This commit is contained in:
dav 2024-07-13 14:04:59 -07:00 committed by David Zhong
parent aa634d03e2
commit 90468d5518
10 changed files with 364 additions and 1621 deletions

View file

@ -4,12 +4,12 @@ use std::process::Command;
#[derive(Debug)]
pub struct DaemonGroup {
system_setup: SystemSetup,
daemon_client: Arc<Mutex<Option<DaemonClient>>>,
daemon_client: Arc<Mutex<Option<Channel>>>,
already_running: bool,
}
pub struct DaemonGroupInit {
pub daemon_client: Arc<Mutex<Option<DaemonClient>>>,
pub daemon_client: Arc<Mutex<Option<Channel>>>,
pub system_setup: SystemSetup,
}

View file

@ -2,7 +2,7 @@ use super::*;
#[derive(Debug)]
pub struct DiagGroup {
daemon_client: Arc<Mutex<Option<DaemonClient>>>,
daemon_client: Arc<Mutex<Option<Channel>>>,
system_setup: SystemSetup,
service_installed: StatusTernary,
@ -12,12 +12,12 @@ pub struct DiagGroup {
}
pub struct DiagGroupInit {
pub daemon_client: Arc<Mutex<Option<DaemonClient>>>,
pub daemon_client: Arc<Mutex<Option<Channel>>>,
pub system_setup: SystemSetup,
}
impl DiagGroup {
async fn new(daemon_client: Arc<Mutex<Option<DaemonClient>>>) -> Result<Self> {
async fn new(daemon_client: Arc<Mutex<Option<Channel>>>) -> Result<Self> {
let system_setup = SystemSetup::new();
let daemon_running = daemon_client.lock().await.is_some();