Enh RateLimiters with Async Sleep #25

Merged
modulatingforce merged 1 commit from chat_async_sleep into main 2024-03-18 22:35:07 -04:00

Instead of Queueing Messages, built in async sleep in combination with enhanced RateLimiters could be used in a way to replicate a kind of queueing , without a queue object

Instead of Queueing Messages, built in `async sleep` in combination with enhanced `RateLimiter`s could be used in a way to replicate a kind of queueing , without a queue object
modulatingforce added a new dependency 2024-03-18 20:36:46 -04:00
modulatingforce added 1 commit 2024-03-18 22:27:06 -04:00
enh ratelimiters
All checks were successful
ci/woodpecker/pr/cargo-checks Pipeline was successful
e16749e69a
modulatingforce self-assigned this 2024-03-18 22:27:36 -04:00
modulatingforce changed title from WIP: Playing with Async Sleep & Rate Limiters to WIP: Enh RateLimiters with Async Sleep 2024-03-18 22:31:33 -04:00
Author
Owner

Tests seem fine. There's a marked reduction of the following notice

["Now=2024-03-18T21:59:34-0400&Pid=20168&Thr=ThreadId(4)&Seq=33"]
Notice = 'NOTICE : (#Some("<channel>")) Your message was not sent because you are sending messages too quickly.'
Channel = 'None'
Chatter = 'None'
Code_Module = 'Some("BotInstance > runner()")'
Tests seem fine. There's a marked reduction of the following notice ``` ["Now=2024-03-18T21:59:34-0400&Pid=20168&Thr=ThreadId(4)&Seq=33"] Notice = 'NOTICE : (#Some("<channel>")) Your message was not sent because you are sending messages too quickly.' Channel = 'None' Chatter = 'None' Code_Module = 'Some("BotInstance > runner()")' ```
modulatingforce changed title from WIP: Enh RateLimiters with Async Sleep to Enh RateLimiters with Async Sleep 2024-03-18 22:33:42 -04:00
modulatingforce merged commit 53c5780322 into main 2024-03-18 22:35:07 -04:00
modulatingforce deleted branch chat_async_sleep 2024-03-18 22:35:07 -04:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference: modulatingforce/forcebot_rs#25
No description provided.