mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 23:44:38 +00:00
make a thing immutable
This commit is contained in:
parent
70dd62c785
commit
d7cc52c6dd
1 changed files with 2 additions and 1 deletions
|
@ -89,7 +89,7 @@ pub async fn start_swarm<
|
|||
let address: ServerAddress = address.try_into().map_err(|_| JoinError::InvalidAddress)?;
|
||||
let resolved_address = resolver::resolve_address(&address).await?;
|
||||
|
||||
let mut bots = try_join_all(
|
||||
let bots = try_join_all(
|
||||
options
|
||||
.accounts
|
||||
.iter()
|
||||
|
@ -117,6 +117,7 @@ pub async fn start_swarm<
|
|||
let states = options.states;
|
||||
let swarm_state = options.swarm_state;
|
||||
|
||||
// bot events
|
||||
while let (Some(event), bot_index) = swarm.bot_recv().await {
|
||||
let bot = swarm.bots.lock()[bot_index].clone();
|
||||
let bot_state = states[bot_index].clone();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue