aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/swarm
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-10-11 00:09:25 -0500
committermat <git@matdoes.dev>2023-10-11 00:09:25 -0500
commitd5f424b8c2fba9b3283aef36fe9e1e051636614c (patch)
tree1a65f88f598497f3950700cc6c3059a95327f8c9 /azalea/src/swarm
parent19881c4612fe8372d8ddffa72c33b4339704f3b6 (diff)
downloadazalea-drasl-d5f424b8c2fba9b3283aef36fe9e1e051636614c.tar.xz
remove unnecessary clone
Diffstat (limited to 'azalea/src/swarm')
-rw-r--r--azalea/src/swarm/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs
index af381c0b..6fae5d34 100644
--- a/azalea/src/swarm/mod.rs
+++ b/azalea/src/swarm/mod.rs
@@ -350,7 +350,7 @@ where
// if there's a join delay, then join one by one
for (account, state) in accounts.iter().zip(states) {
swarm_clone
- .add_with_exponential_backoff(account, state.clone())
+ .add_with_exponential_backoff(account, state)
.await;
tokio::time::sleep(join_delay).await;
}
@@ -361,7 +361,7 @@ where
async move |(account, state)| -> Result<(), JoinError> {
swarm_borrow
.clone()
- .add_with_exponential_backoff(account, state.clone())
+ .add_with_exponential_backoff(account, state)
.await;
Ok(())
},