Format code

This commit is contained in:
Adrian Woźniak 2020-12-24 16:24:47 +01:00
parent 70ca962f8c
commit 5a7ddb03e1
31 changed files with 188 additions and 190 deletions

View File

@ -53,16 +53,14 @@ async fn main() -> Result<(), String> {
.data(mail_addr.clone()) .data(mail_addr.clone())
.data(hi_addr.clone()) .data(hi_addr.clone())
.data(database_actor::build_pool()); .data(database_actor::build_pool());
featured! { app, "local-storage", app.data(fs_addr.clone()) } featured! { app, "local-storage", app.data(fs_addr.clone()) };
;
// services step // services step
let app = app let app = app
.service(websocket_actor::index) .service(websocket_actor::index)
.service(actix_web::web::scope("/avatar").service(web_actor::avatar::upload)); .service(actix_web::web::scope("/avatar").service(web_actor::avatar::upload));
featured! { app, "local-storage", app.service(filesystem_actor::service()) } featured! { app, "local-storage", app.service(filesystem_actor::service()) };
;
app app
}) })
.workers(web_config.concurrency) .workers(web_config.concurrency)