feature/scel-base #1
@ -9,7 +9,7 @@ use axum::{
|
|||||||
};
|
};
|
||||||
use oauth2::{
|
use oauth2::{
|
||||||
basic::BasicClient, reqwest::async_http_client, AuthUrl, AuthorizationCode, ClientId,
|
basic::BasicClient, reqwest::async_http_client, AuthUrl, AuthorizationCode, ClientId,
|
||||||
ClientSecret, CsrfToken, RedirectUrl, Scope, TokenResponse, TokenUrl,
|
ClientSecret, CsrfToken, RedirectUrl, TokenResponse, TokenUrl,
|
||||||
};
|
};
|
||||||
use reqwest::header::SET_COOKIE;
|
use reqwest::header::SET_COOKIE;
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
|
@ -79,7 +79,7 @@ impl Server {
|
|||||||
|
|
||||||
let addr = SocketAddr::from(([127, 0, 0, 1], 3000));
|
let addr = SocketAddr::from(([127, 0, 0, 1], 3000));
|
||||||
|
|
||||||
return Server { app, addr };
|
Server { app, addr }
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn start(self) -> anyhow::Result<()> {
|
pub async fn start(self) -> anyhow::Result<()> {
|
||||||
|
@ -48,8 +48,8 @@ impl InMemoryDownloadService {
|
|||||||
id.clone(),
|
id.clone(),
|
||||||
(
|
(
|
||||||
Arc::new(Mutex::new(d.clone())),
|
Arc::new(Mutex::new(d.clone())),
|
||||||
shared_tx.clone(),
|
shared_tx,
|
||||||
rx.clone(),
|
rx,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user