mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-08 23:07:54 +00:00
Collect metrics about webhook rate limit cache size
This commit is contained in:
parent
93bf7c6543
commit
05595329b5
3 changed files with 7 additions and 1 deletions
|
|
@ -24,6 +24,8 @@ namespace PluralKit.Bot
|
|||
_logger = logger.ForContext<WebhookRateLimitService>();
|
||||
}
|
||||
|
||||
public int CacheSize => _info.Count;
|
||||
|
||||
public bool TryExecuteWebhook(IWebhook webhook)
|
||||
{
|
||||
// If we have nothing saved, just allow it (we'll save something once the response returns)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue