From 6f3ed67070f1caebeda959665d2662f09444d8f2 Mon Sep 17 00:00:00 2001 From: jokil123 <46920345+jokil123@users.noreply.github.com> Date: Mon, 6 Feb 2023 18:53:02 +0100 Subject: [PATCH] removed unneeded `Sync` (#71) --- src/db/listen_changes.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db/listen_changes.rs b/src/db/listen_changes.rs index 9b9e3af..55cec98 100644 --- a/src/db/listen_changes.rs +++ b/src/db/listen_changes.rs @@ -228,7 +228,7 @@ where pub async fn start(&mut self, cb: FN) -> FirestoreResult<()> where FN: Fn(FirestoreListenEvent) -> F + Send + Sync + 'static, - F: Future> + Send + Sync + 'static, + F: Future> + Send + 'static, { info!( "Starting a Firestore listener for targets: {:?}...", @@ -297,7 +297,7 @@ where ) where D: FirestoreListenSupport + Clone + Send + Sync, FN: Fn(FirestoreListenEvent) -> F + Send + Sync, - F: Future> + Send + Sync, + F: Future> + Send, { while !shutdown_flag.load(Ordering::Relaxed) { debug!("Start listening on targets {:?}... ", targets_state.len());