Explorar el Código

Reduce max concurrent pending requests per account

Zed hace 3 años
padre
commit
30bdf3a14e
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/tokens.nim

+ 2 - 2
src/tokens.nim

@@ -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 types
 
 # max requests at a time per account to avoid race conditions
 const
-  maxConcurrentReqs = 5
+  maxConcurrentReqs = 2
   dayInSeconds = 24 * 60 * 60
 
 var