aboutsummaryrefslogtreecommitdiff
path: root/examples/windmark.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/windmark.rs')
-rw-r--r--examples/windmark.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/windmark.rs b/examples/windmark.rs
index e1cb513..a733be2 100644
--- a/examples/windmark.rs
+++ b/examples/windmark.rs
@@ -23,7 +23,8 @@ extern crate log;
use windmark::Response;
-fn main() -> std::io::Result<()> {
+#[tokio::main]
+async fn main() -> std::io::Result<()> {
windmark::Router::new()
.set_private_key_file("windmark_private.pem")
.set_certificate_chain_file("windmark_pair.pem")
@@ -107,4 +108,5 @@ fn main() -> std::io::Result<()> {
}
})
.run()
+ .await
}