diff options
| author | mat <git@matdoes.dev> | 2023-12-01 22:51:27 -0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-12-01 22:51:27 -0600 |
| commit | 175eacfac37cbe05911fa2d19dee7e7fa38a5c2e (patch) | |
| tree | 43b9a9f42f2bfe88fd7d24d361ae977e63a58914 /azalea/examples/testbot.rs | |
| parent | 45f9d276013cbfa96fbe75c20aa8709281453fe4 (diff) | |
| download | azalea-drasl-175eacfac37cbe05911fa2d19dee7e7fa38a5c2e.tar.xz | |
rename add_with_exponential_backoff to add_and_retry_forever
Diffstat (limited to 'azalea/examples/testbot.rs')
| -rw-r--r-- | azalea/examples/testbot.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/azalea/examples/testbot.rs b/azalea/examples/testbot.rs index 74ecfd8a..aa47d5a2 100644 --- a/azalea/examples/testbot.rs +++ b/azalea/examples/testbot.rs @@ -376,9 +376,7 @@ async fn swarm_handle( SwarmEvent::Disconnect(account) => { println!("bot got kicked! {}", account.username); tokio::time::sleep(Duration::from_secs(5)).await; - swarm - .add_with_exponential_backoff(account, State::default()) - .await; + swarm.add_and_retry_forever(account, State::default()).await; } SwarmEvent::Chat(m) => { println!("swarm chat message: {}", m.message().to_ansi()); |
