Skip to content

Commit

Permalink
Revert breaking Clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pka committed Jun 23, 2023
1 parent 5cfaecf commit 269f1f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bbox-map-server/src/dispatcher/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl DispatchConfig {
}

pub trait RequestDispatcher {
fn new(config: &DispatchConfig, pools: &[FcgiClientPool]) -> Self;
fn new(config: &DispatchConfig, pools: &Vec<FcgiClientPool>) -> Self;
fn select(&mut self, query_str: &str) -> usize;
}

Expand All @@ -36,7 +36,7 @@ pub enum Dispatcher {
}

impl Dispatcher {
pub fn new(config: &DispatchConfig, pools: &[FcgiClientPool]) -> Self {
pub fn new(config: &DispatchConfig, pools: &Vec<FcgiClientPool>) -> Self {
match config.mode {
DispatchMode::Rand => {
Dispatcher::Rand(Mutex::new(rand::Dispatcher::new(config, pools)))
Expand Down
2 changes: 1 addition & 1 deletion bbox-map-server/src/dispatcher/round_robin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pub struct Dispatcher {
}

impl RequestDispatcher for Dispatcher {
fn new(_config: &DispatchConfig, pools: &[FcgiClientPool]) -> Self {
fn new(_config: &DispatchConfig, pools: &Vec<FcgiClientPool>) -> Self {
Self {
pool_size: pools.len(),
pool_no: 0,
Expand Down
2 changes: 1 addition & 1 deletion bbox-map-server/src/dispatcher/wms_optimized.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ struct PrioDispatch {
}

impl RequestDispatcher for Dispatcher {
fn new(_config: &DispatchConfig, pools: &[FcgiClientPool]) -> Self {
fn new(_config: &DispatchConfig, pools: &Vec<FcgiClientPool>) -> Self {
let prio_num_pools = if pools.len() > 2 {
// Default: 1 Pool for prio 0 and N-1 pools for prio 1
vec![1, pools.len() - 1] // TODO: from DispatchConfig
Expand Down

0 comments on commit 269f1f6

Please sign in to comment.