From b54158abf170da0af1c9c207b10cb1d61c7507d2 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Thu, 12 Dec 2024 10:08:40 +0100 Subject: [PATCH] move broadcaster to not clone --- server/src/http/feature_refresher.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/http/feature_refresher.rs b/server/src/http/feature_refresher.rs index b6669015..3d6e526e 100644 --- a/server/src/http/feature_refresher.rs +++ b/server/src/http/feature_refresher.rs @@ -164,14 +164,14 @@ impl FeatureRefresher { FeatureRefresher { unleash_client, tokens_to_refresh: Arc::new(DashMap::default()), - features_cache: features.clone(), + #[cfg(feature = "streaming")] + broadcaster: Broadcaster::new(features.clone()), + features_cache: features, engine_cache: engines, refresh_interval: features_refresh_interval, persistence, strict, app_name: app_name.into(), - #[cfg(feature = "streaming")] - broadcaster: Broadcaster::new(features.clone()), } }