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