use crate::poller::Poller;
use crate::sidecar::SidecarHandle;
use std::sync::Arc;

pub struct AppState {
    pub sidecar: Arc<SidecarHandle>,
    pub poller: Arc<Poller>,
}

impl AppState {
    pub fn new() -> Self {
        Self {
            sidecar: SidecarHandle::new(),
            poller: Poller::new(),
        }
    }
}

impl Default for AppState {
    fn default() -> Self {
        Self::new()
    }
}
