Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
notmarek committed Apr 4, 2023
1 parent fdabb1c commit f6610c5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
use actix_cors::Cors;
use actix_files::Files;
use actix_web::{http::header, middleware, web::Data, App, HttpServer};
use chrono::Utc;
use io::{
eventqueue::{Queue, QueueTrait},
ArcQueue,
};
use log::{debug, info};
use migration::MigratorTrait;
use sea_orm::{Database, DatabaseConnection};
use std::{env, str::FromStr, sync::Arc, time::Duration};
use tokio::sync::Mutex;
use utoipa_swagger_ui::SwaggerUi;
use actix_files::Files;
use actix_cors::Cors;
use actix_web::{http::header, middleware, web::Data, App, HttpServer};
use chrono::Utc;
use sea_orm::{Database, DatabaseConnection};
// let db: DatabaseConnection = Database::connect("protocol://username:password@host/database").await?;
use io::Session;
// use io::utils::indexer::test_kool;
Expand All @@ -28,7 +28,9 @@ async fn run_queue(queue: Arc<Mutex<dyn QueueTrait>>) {
}

async fn index() -> impl actix_web::Responder {
actix_files::NamedFile::open_async("./static/index.html").await.unwrap()
actix_files::NamedFile::open_async("./static/index.html")
.await
.unwrap()
}

#[actix_web::main]
Expand Down

0 comments on commit f6610c5

Please sign in to comment.