From 8f0d0d92808286e92b7c8aea704be3c00f5afce4 Mon Sep 17 00:00:00 2001 From: mat Date: Wed, 25 Dec 2024 07:27:09 +0000 Subject: close tcp connection on bot disconnect and add swarms to testbot cli --- azalea/src/swarm/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'azalea/src') diff --git a/azalea/src/swarm/mod.rs b/azalea/src/swarm/mod.rs index 5ae8f9a1..d0219406 100644 --- a/azalea/src/swarm/mod.rs +++ b/azalea/src/swarm/mod.rs @@ -415,7 +415,7 @@ where // SwarmBuilder (self) isn't Send so we have to take all the things we need out // of it - let mut swarm_clone = swarm.clone(); + let swarm_clone = swarm.clone(); let join_delay = self.join_delay; let accounts = self.accounts.clone(); let states = self.states.clone(); @@ -602,7 +602,7 @@ impl Swarm { /// /// Returns an `Err` if the bot could not do a handshake successfully. pub async fn add_with_opts( - &mut self, + &self, account: &Account, state: S, join_opts: &JoinOpts, @@ -663,7 +663,7 @@ impl Swarm { /// This does exponential backoff (though very limited), starting at 5 /// seconds and doubling up to 15 seconds. pub async fn add_and_retry_forever( - &mut self, + &self, account: &Account, state: S, ) -> Client { @@ -674,7 +674,7 @@ impl Swarm { /// Same as [`Self::add_and_retry_forever`], but allow passing custom join /// options. pub async fn add_and_retry_forever_with_opts( - &mut self, + &self, account: &Account, state: S, opts: &JoinOpts, -- cgit v1.2.3