Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SpoCCify Backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SpoCCify
SpoCCify Backend
Commits
4d1c370e
Commit
4d1c370e
authored
Nov 28, 2022
by
Falk Rehse
Browse files
Options
Downloads
Patches
Plain Diff
Fix tokio
parent
de8090f9
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
cc-player
+1
-1
1 addition, 1 deletion
cc-player
frontend
+1
-1
1 addition, 1 deletion
frontend
src/main.rs
+5
-4
5 additions, 4 deletions
src/main.rs
with
7 additions
and
6 deletions
cc-player
@
1ad99b4d
Compare
53617a52
...
1ad99b4d
Subproject commit
53617a52534ccd8795277408c0892bda190481f6
Subproject commit
1ad99b4d51cb297ef67679f57fd694128ace9118
This diff is collapsed.
Click to expand it.
frontend
@
b6f0a71e
Compare
e9fda016
...
b6f0a71e
Subproject commit
e9fda016e59626cd189f7b479838fd722d36255
0
Subproject commit
b6f0a71eae42caf9a0ac6efbd82c54f06b403e6
0
This diff is collapsed.
Click to expand it.
src/main.rs
+
5
−
4
View file @
4d1c370e
...
@@ -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!"
));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment