|
@ -111,10 +111,10 @@ fn main() { |
|
|
host, port, workers, config_path
|
|
|
host, port, workers, config_path
|
|
|
);
|
|
|
);
|
|
|
|
|
|
|
|
|
actix_server = actix_web::server::new(|| server::router::create())
|
|
|
|
|
|
|
|
|
let actix_server = actix_web::server::new(|| server::router::create())
|
|
|
.workers(workers)
|
|
|
.workers(workers)
|
|
|
.bind(format!("{}:{}", host, port));
|
|
|
.bind(format!("{}:{}", host, port));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
match actix_server {
|
|
|
match actix_server {
|
|
|
Ok(server) => server.run(),
|
|
|
Ok(server) => server.run(),
|
|
|
Err(e) => error!("{}", e)
|
|
|
Err(e) => error!("{}", e)
|
|
|