diff options
| author | mat <git@matdoes.dev> | 2024-12-25 07:27:09 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-12-25 07:27:09 +0000 |
| commit | 8f0d0d92808286e92b7c8aea704be3c00f5afce4 (patch) | |
| tree | fd3809cff3ae64f96fc75f54addb38306fbe77af /azalea/src | |
| parent | 04eaa5c3d01a8f3a599a3a1abf7205eed80df4a2 (diff) | |
| download | azalea-drasl-8f0d0d92808286e92b7c8aea704be3c00f5afce4.tar.xz | |
close tcp connection on bot disconnect and add swarms to testbot cli
Diffstat (limited to 'azalea/src')
| -rw-r--r-- | azalea/src/swarm/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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<S: Component + Clone>( - &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<S: Component + Clone>( - &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<S: Component + Clone>( - &mut self, + &self, account: &Account, state: S, opts: &JoinOpts, |
