Skip to content
Snippets Groups Projects
Commit 4d1c370e authored by Falk Rehse's avatar Falk Rehse
Browse files

Fix tokio

parent de8090f9
No related branches found
No related tags found
No related merge requests found
Subproject commit 53617a52534ccd8795277408c0892bda190481f6 Subproject commit 1ad99b4d51cb297ef67679f57fd694128ace9118
Subproject commit e9fda016e59626cd189f7b479838fd722d362550 Subproject commit b6f0a71eae42caf9a0ac6efbd82c54f06b403e60
...@@ -13,7 +13,8 @@ use std::sync::Arc; ...@@ -13,7 +13,8 @@ use std::sync::Arc;
use song::Song; use song::Song;
fn main() { #[tokio::main]
async fn main() {
let playlist = Mutable::new(Vec::<Song>::new()); let playlist = Mutable::new(Vec::<Song>::new());
println!("Starting!"); println!("Starting!");
...@@ -23,9 +24,9 @@ fn main() { ...@@ -23,9 +24,9 @@ fn main() {
let http_bind_address = format!("{}:{}", http_bind_host, http_bind_port); let http_bind_address = format!("{}:{}", http_bind_host, http_bind_port);
tokio::spawn(async move { // tokio::spawn(async move {
http::handle_http(&http_bind_address).await; // http::handle_http(&http_bind_address).await;
}); // });
let player_token = let player_token =
Arc::new(env::var("SPOCCIFY_PLAYER_TOKEN").expect("No player token provided!")); Arc::new(env::var("SPOCCIFY_PLAYER_TOKEN").expect("No player token provided!"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment