fix missing Arc import

This commit is contained in:
Ferdinand Schober
2024-07-11 00:44:17 +02:00
parent 8ba178dce0
commit c58f5dbdd5

View File

@@ -1,6 +1,6 @@
use anyhow::{anyhow, Result};
use futures::StreamExt;
use std::{collections::HashSet, net::SocketAddr};
use std::{collections::HashSet, net::SocketAddr, sync::Arc};
use tokio_util::sync::CancellationToken;
use tokio::{
@@ -33,7 +33,7 @@ pub fn new(
backend: Option<CaptureBackend>,
server: Server,
sender_tx: Sender<(Event, SocketAddr)>,
timer_notify: Notify,
timer_notify: Arc<Notify>,
release_bind: Vec<scancode::Linux>,
cancellation_token: CancellationToken,
) -> Result<(JoinHandle<Result<()>>, Sender<CaptureEvent>), CaptureCreationError> {