recycleactor commited on
Commit
9784d5f
·
verified ·
1 Parent(s): aeecd06

Upload 2 files

Browse files
Files changed (1) hide show
  1. src/main.rs +3 -4
src/main.rs CHANGED
@@ -1,4 +1,4 @@
1
- use axum::{
2
  routing::{get, post},
3
  http::StatusCode,
4
  http::{HeaderMap, Method, header::{RANGE, CONTENT_RANGE, ACCEPT_RANGES, CONTENT_LENGTH, CONTENT_TYPE}},
@@ -704,7 +704,6 @@ async fn stream(
704
  if drop_bytes > 0 {
705
  if drop_bytes < tail.len() {
706
  tail = tail.split_off(drop_bytes);
707
- drop_bytes = 0;
708
  } else {
709
  tail.clear();
710
  }
@@ -1175,7 +1174,7 @@ async fn worker_login(email: &str, password_md5: &str) -> Result<String, String>
1175
 
1176
  async fn gw_light_call(
1177
  client: &reqwest::Client,
1178
- jar: &Arc<Jar>,
1179
  method: &str,
1180
  api_token: &str,
1181
  params: serde_json::Value,
@@ -1192,7 +1191,7 @@ async fn gw_light_call(
1192
 
1193
  async fn do_req(
1194
  client: &reqwest::Client,
1195
- url_deezer: &Url,
1196
  url: &str,
1197
  method: &str,
1198
  api_token: &str,
 
1
+ use axum::{
2
  routing::{get, post},
3
  http::StatusCode,
4
  http::{HeaderMap, Method, header::{RANGE, CONTENT_RANGE, ACCEPT_RANGES, CONTENT_LENGTH, CONTENT_TYPE}},
 
704
  if drop_bytes > 0 {
705
  if drop_bytes < tail.len() {
706
  tail = tail.split_off(drop_bytes);
 
707
  } else {
708
  tail.clear();
709
  }
 
1174
 
1175
  async fn gw_light_call(
1176
  client: &reqwest::Client,
1177
+ _jar: &Arc<Jar>,
1178
  method: &str,
1179
  api_token: &str,
1180
  params: serde_json::Value,
 
1191
 
1192
  async fn do_req(
1193
  client: &reqwest::Client,
1194
+ _url_deezer: &Url,
1195
  url: &str,
1196
  method: &str,
1197
  api_token: &str,