diff options
author | Melody Horn / boringcactus <melody@boringcactus.com> | 2021-06-13 10:19:13 -0600 |
---|---|---|
committer | Melody Horn / boringcactus <melody@boringcactus.com> | 2021-06-13 10:19:13 -0600 |
commit | 109966b7e365423bce83b78004eb1c21b7892940 (patch) | |
tree | b254d5ec7e53de15e88319d381fce530e422d97a /src/server | |
parent | 4c8940569e5729213b7eee6f3d5be39b745b697b (diff) | |
download | tosin-109966b7e365423bce83b78004eb1c21b7892940.tar.gz tosin-109966b7e365423bce83b78004eb1c21b7892940.zip |
break a few things out of folders
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/mod.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/server/mod.rs b/src/server/mod.rs deleted file mode 100644 index b275616..0000000 --- a/src/server/mod.rs +++ /dev/null @@ -1,11 +0,0 @@ -use crate::urls::UrlMap; - -pub fn run_server(filter_stack: UrlMap) { - let server_task = warp::serve(filter_stack).run(([127, 0, 0, 1], 3030)); - - tokio::runtime::Builder::new_multi_thread() - .enable_all() - .build() - .unwrap() - .block_on(server_task) -} |