Skip to content

Commit

Permalink
refactor: remove unused, fix client_api tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nunogois committed Dec 6, 2024
1 parent 11423b9 commit 3072217
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion server/src/client_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ pub fn configure_experimental_post_features(
mod tests {

use crate::http::broadcaster::Broadcaster;
use crate::internal_backstage::features;
use crate::metrics::client_metrics::{ApplicationKey, MetricsBatch, MetricsKey};
use crate::types::{TokenType, TokenValidationStatus};
use std::collections::HashMap;
Expand Down
1 change: 0 additions & 1 deletion server/src/http/broadcaster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ impl Broadcaster {

/// Removes all non-responsive clients from broadcast list.
async fn remove_stale_clients(&self) {
//let clients = self.inner.lock().clients.clone();
let active_connections = self.inner.lock().active_connections.clone();

for (_query, mut group) in active_connections {
Expand Down
1 change: 0 additions & 1 deletion server/src/http/feature_refresher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use std::collections::HashSet;
use std::{sync::Arc, time::Duration};

use actix_web::http::header::EntityTag;
use actix_web_lab::sse::Data;
use chrono::Utc;
use dashmap::DashMap;
use eventsource_client::Client;
Expand Down
1 change: 0 additions & 1 deletion server/src/http/unleash_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,6 @@ mod tests {
http::header::EntityTag,
web, App, HttpResponse,
};
use capture_logger::{begin_capture, pop_captured};
use chrono::Duration;
use unleash_types::client_features::{ClientFeature, ClientFeatures};

Expand Down

0 comments on commit 3072217

Please sign in to comment.