Skip to content

Commit 9687a5f

Browse files
committed
adding a delay between each request intentionally
1 parent 51c20cd commit 9687a5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/discord.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def _make_request_with_retry(self, method: str, url: str, headers: dict, **kwarg
6464
base_delay = 1
6565

6666
# Add a small delay before the first request to avoid rapid-fire requests
67-
time.sleep(0.1)
67+
time.sleep(3)
6868

6969
for attempt in range(max_retries):
7070
try:

0 commit comments

Comments
 (0)