Skip to content

Commit 0b7fc79

Browse files
committed
io_uring: create transfer_monitor with regular tokio::spawn
It probably doesn't need to be created with tokio_uring::spawn because it doesn't contain any io-uring related stuff.
1 parent c5ab64b commit 0b7fc79

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/io_uring.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,7 @@ pub async fn io_loop(
248248
));
249249

250250
// Thread for monitoring transfer
251-
let mut monitor =
252-
tokio_uring::spawn(transfer_monitor(stats_interval, file_bytes, stream_bytes));
251+
let mut monitor = tokio::spawn(transfer_monitor(stats_interval, file_bytes, stream_bytes));
253252

254253
// Stop as soon as one of them errors
255254
let res = tokio::try_join!(&mut from_file, &mut from_stream, &mut monitor);

0 commit comments

Comments
 (0)