From 83baf69833ee342f70de8e4b4642ec43382e87a6 Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Wed, 2 Mar 2022 06:06:42 +0000 Subject: [PATCH] fix: event leak warning --- site/docs/big-bot-guide/gateway.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/docs/big-bot-guide/gateway.md b/site/docs/big-bot-guide/gateway.md index 16799c1ce..d2c4ac773 100644 --- a/site/docs/big-bot-guide/gateway.md +++ b/site/docs/big-bot-guide/gateway.md @@ -484,7 +484,7 @@ async function handleInteractionQueueing(gateway, data: GatewayPayload, shardId: ``` If you have any questions please contact us on discord. Note, you can take this concept and expand on it as much as you -like. You can swap out the fetch() with websockets or any other system you like to communicate between your processes. +like. You can swap out the fetch() with websockets or any other system you like to communicate between your processes. I highly recommend you take some time to add checks in place to prevent adding to queue when the queue reaches a certain size. You don't want this to become a memory leak of infinite size and crash your gateway. So take the time to do this right in your setup. ## Spawning Shards