aboutsummaryrefslogtreecommitdiff
path: root/stream/src/lib.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-01-29 18:03:06 +0100
committermetamuffin <metamuffin@disroot.org>2025-01-29 18:03:06 +0100
commitdb511d3fe50f05329615f718515fab1b80d9e06a (patch)
tree7969fea01be100cbe4385ad13a14940a987ac513 /stream/src/lib.rs
parent82e8a55a1496ae9132e13e7286fe1c0d57d586d3 (diff)
downloadjellything-db511d3fe50f05329615f718515fab1b80d9e06a.tar
jellything-db511d3fe50f05329615f718515fab1b80d9e06a.tar.bz2
jellything-db511d3fe50f05329615f718515fab1b80d9e06a.tar.zst
no direct redb access
Diffstat (limited to 'stream/src/lib.rs')
-rw-r--r--stream/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/stream/src/lib.rs b/stream/src/lib.rs
index 14d3a4c..2055440 100644
--- a/stream/src/lib.rs
+++ b/stream/src/lib.rs
@@ -19,7 +19,7 @@ use jellycommon::{
LocalTrack, Node, TrackSource,
};
use jhls::jhls_index;
-use std::{io::SeekFrom, ops::Range};
+use std::{io::SeekFrom, ops::Range, sync::Arc};
use tokio::{
fs::File,
io::{duplex, AsyncReadExt, AsyncSeekExt, AsyncWriteExt, DuplexStream},
@@ -47,7 +47,7 @@ pub fn stream_head(spec: &StreamSpec) -> StreamHead {
}
pub async fn stream(
- node: Node,
+ node: Arc<Node>,
spec: StreamSpec,
range: Range<usize>,
perms: &PermissionSet,
@@ -94,7 +94,7 @@ pub async fn stream(
}
async fn remux_stream(
- node: Node,
+ node: Arc<Node>,
local_tracks: Vec<LocalTrack>,
spec: StreamSpec,
range: Range<usize>,