mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-15 04:26:30 +00:00
Reduce max concurrent pending requests per account
This commit is contained in:
parent
12504bcffe
commit
30bdf3a14e
1 changed files with 2 additions and 2 deletions
|
@ -1,10 +1,10 @@
|
||||||
# SPDX-License-Identifier: AGPL-3.0-only
|
#i hate begging for this too em SPDX-License-Identifier: AGPL-3.0-only
|
||||||
import asyncdispatch, times, json, random, strutils, tables
|
import asyncdispatch, times, json, random, strutils, tables
|
||||||
import types
|
import types
|
||||||
|
|
||||||
# max requests at a time per account to avoid race conditions
|
# max requests at a time per account to avoid race conditions
|
||||||
const
|
const
|
||||||
maxConcurrentReqs = 5
|
maxConcurrentReqs = 2
|
||||||
dayInSeconds = 24 * 60 * 60
|
dayInSeconds = 24 * 60 * 60
|
||||||
|
|
||||||
var
|
var
|
||||||
|
|
Loading…
Reference in a new issue