clean config error
This commit is contained in:
parent
7298d8d2b9
commit
0c1f29ac5c
1 changed files with 4 additions and 1 deletions
|
@ -71,7 +71,10 @@ fn clean_expired_evt(
|
||||||
#[launch]
|
#[launch]
|
||||||
async fn rocket() -> _ {
|
async fn rocket() -> _ {
|
||||||
let rocket = rocket::build();
|
let rocket = rocket::build();
|
||||||
let config: Config = rocket.figment().extract().unwrap();
|
let config: Config = rocket
|
||||||
|
.figment()
|
||||||
|
.extract()
|
||||||
|
.unwrap_or_else(|err| panic!("Error parsing config:\n{}", err));
|
||||||
let tracking: Tracking = Arc::new(
|
let tracking: Tracking = Arc::new(
|
||||||
config
|
config
|
||||||
.teams
|
.teams
|
||||||
|
|
Loading…
Reference in a new issue