Format code
This commit is contained in:
parent
70ca962f8c
commit
5a7ddb03e1
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user