Skip to content

Commit 2ba0438

Browse files
committed
build and runnable, still no host_name support, but hardcodable
1 parent ba0b2c7 commit 2ba0438

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

backend/src/main.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,14 @@ fn get_colour(value: &Value, _: &HashMap<String, Value>) -> tera::Result<Value>
8686
));
8787
}
8888

89-
#[async_std::main]
90-
async fn main(){
91-
let rocket = rocket().await;
92-
rocket.launch().await.expect("ROCKET CRASHED");
93-
}
94-
9589
fn get_host_name(host_name: &str) -> impl Fn(&HashMap<String, Value>) -> tera::Result<Value> + Sync + Send {
9690
let host_name = host_name.to_string();
9791

9892
move |_| Ok(Value::String(host_name.clone()))
9993
}
10094

10195
/// Async main function, starting logger, graph and rocket
96+
#[rocket::launch]
10297
async fn rocket() -> rocket::Rocket {
10398
let fut = graph::set_default();
10499

0 commit comments

Comments
 (0)