Skip to content

Commit 4c48ae7

Browse files
committedSep 19, 2023
modify param in route_internal.
1 parent 767b462 commit 4c48ae7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎router/src/cluster_based.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ impl ClusterBasedRouter {
126126

127127
async fn route_internal(
128128
&self,
129-
tables: &Vec<String>,
129+
tables: &[String],
130130
database: String,
131131
route_with_cache: bool,
132132
) -> Result<Vec<RouteData>> {
@@ -135,7 +135,7 @@ impl ClusterBasedRouter {
135135
let miss = if route_with_cache {
136136
self.route_from_cache(tables, &mut routes)
137137
} else {
138-
tables.clone()
138+
tables.to_owned()
139139
};
140140

141141
trace!("Route from cache, miss:{miss:?}, routes:{routes:?}");

0 commit comments

Comments
 (0)
Please sign in to comment.