chore: fmt

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-08-27 19:57:22 +02:00
parent 86cfc18076
commit d3beab5006
6 changed files with 670 additions and 521 deletions

View File

@@ -1,16 +1,7 @@
use std::sync::Arc;
use axum::{async_trait};
use churn_domain::{ServerEnrollReq};
use axum::async_trait;
use churn_domain::ServerEnrollReq;
use tokio::sync::Mutex;
@@ -37,8 +28,6 @@ struct DefaultAgentService {
leases: Arc<Mutex<Vec<String>>>,
}
#[async_trait]
pub trait AgentServiceTrait {
async fn enroll(&self, agent_name: &str, server: &str, lease: &str) -> anyhow::Result<()>;

View File

@@ -42,14 +42,11 @@ enum Commands {
},
}
#[derive(Clone)]
#[derive(Default)]
#[derive(Clone, Default)]
struct AppState {
agent: AgentService,
}
#[tokio::main]
async fn main() -> anyhow::Result<()> {
dotenv::dotenv().ok();