Skip to content

Commit

Permalink
feat: remove unnecessary clone
Browse files Browse the repository at this point in the history
  • Loading branch information
zonyitoo committed Jun 12, 2024
1 parent cc0e4e8 commit e2d4826
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/shadowsocks-service/src/local/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ impl Server {
balancer_builder.check_best_interval(intv);
}

for server in &config.server {
balancer_builder.add_server(server.clone());
for server in config.server {
balancer_builder.add_server(server);
}

balancer_builder.build().await?
Expand Down

0 comments on commit e2d4826

Please sign in to comment.