aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-27 03:57:18 +0000
committerFuwn <[email protected]>2022-03-27 03:57:18 +0000
commita575fed5e9141459ba65fe783fdad302540ef40d (patch)
treeeb6f290502de36c0fe43d6fcdc7a49c1f0ae16da /examples
parentfeat(router): modules (diff)
downloadwindmark-a575fed5e9141459ba65fe783fdad302540ef40d.tar.xz
windmark-a575fed5e9141459ba65fe783fdad302540ef40d.zip
feat(router): async!
Diffstat (limited to 'examples')
-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
}