diff options
Diffstat (limited to 'server/src/logic/stream.rs')
-rw-r--r-- | server/src/logic/stream.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/logic/stream.rs b/server/src/logic/stream.rs index f9cdb41..9d4db6d 100644 --- a/server/src/logic/stream.rs +++ b/server/src/logic/stream.rs @@ -3,7 +3,7 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2025 metamuffin <metamuffin.org> */ -use crate::{database::Database, ui::error::MyError}; +use crate::{database::Database, helper::A, ui::error::MyError}; use anyhow::{anyhow, Result}; use jellybase::{assetfed::AssetInner, federation::Federation}; use jellycommon::{stream::StreamSpec, TrackSource}; @@ -26,7 +26,7 @@ use tokio::io::{duplex, DuplexStream}; #[head("/n/<_id>/stream?<spec..>")] pub async fn r_stream_head( - _sess: Session, + _sess: A<Session>, _id: &str, spec: BTreeMap<String, String>, ) -> Result<Either<StreamResponse, Redirect>, MyError> { @@ -42,7 +42,7 @@ pub async fn r_stream_head( #[get("/n/<id>/stream?<spec..>")] pub async fn r_stream( - _session: Session, + _session: A<Session>, _federation: &State<Federation>, db: &State<Database>, id: &str, |