diff --git a/router/src/cluster_based.rs b/router/src/cluster_based.rs index 3237c9ba86..202eae5c95 100644 --- a/router/src/cluster_based.rs +++ b/router/src/cluster_based.rs @@ -126,7 +126,7 @@ impl ClusterBasedRouter { async fn route_internal( &self, - tables: &Vec, + tables: &[String], database: String, route_with_cache: bool, ) -> Result> { @@ -135,7 +135,7 @@ impl ClusterBasedRouter { let miss = if route_with_cache { self.route_from_cache(tables, &mut routes) } else { - tables.clone() + tables.to_owned() }; trace!("Route from cache, miss:{miss:?}, routes:{routes:?}");