Skip to content

Commit

Permalink
modify param in route_internal.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachelint committed Sep 19, 2023
1 parent 767b462 commit 4c48ae7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions router/src/cluster_based.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl ClusterBasedRouter {

async fn route_internal(
&self,
tables: &Vec<String>,
tables: &[String],
database: String,
route_with_cache: bool,
) -> Result<Vec<RouteData>> {
Expand All @@ -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:?}");
Expand Down

0 comments on commit 4c48ae7

Please sign in to comment.