Skip to content

Commit

Permalink
Adjust interval duration in bot.rs
Browse files Browse the repository at this point in the history
Increased the duration of the interval function from 800ms to 1000ms in bot.rs. This change leads to a slightly slower loop speed, providing better performance and avoiding potential rate limiting issues.
  • Loading branch information
kasugamirai committed Feb 18, 2024
1 parent 2d17564 commit 7163765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/discord/bot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl EventHandler for Handler {
};

let mut result = String::new();
let mut interval = interval(Duration::from_millis(800));
let mut interval = interval(Duration::from_millis(1000));

loop {
select! {
Expand Down

0 comments on commit 7163765

Please sign in to comment.