diff options
| author | Fuwn <[email protected]> | 2022-03-27 03:57:18 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-03-27 03:57:18 +0000 |
| commit | bb012b09bc74a1b37ae662c3fc6c50aec515e832 (patch) | |
| tree | eb6f290502de36c0fe43d6fcdc7a49c1f0ae16da /examples/windmark.rs | |
| parent | feat(router): modules (diff) | |
| download | windmark-bb012b09bc74a1b37ae662c3fc6c50aec515e832.tar.xz windmark-bb012b09bc74a1b37ae662c3fc6c50aec515e832.zip | |
feat(router): async!
Diffstat (limited to 'examples/windmark.rs')
| -rw-r--r-- | examples/windmark.rs | 4 |
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 } |