Skip to content

Commit

Permalink
move broadcaster to not clone
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasheartman committed Dec 12, 2024
1 parent 2c66bc6 commit b54158a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/src/http/feature_refresher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
}
}

Expand Down

0 comments on commit b54158a

Please sign in to comment.