txlyre 2 年之前
父節點
當前提交
dccee75603
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      byafn.py

+ 1 - 1
byafn.py

@@ -205,7 +205,7 @@ async def read(peer, size):
 
 async def cooldown(peer, out=True):
   if out:
-    await asyncio.sleep(RATELIMIT)
+    await asyncio.sleep(RATELIMIT + 0.01)
   else:
     if time.time() - peer.last_message_in_ts < RATELIMIT:
       raise Error(f'rate limit (={RATELIMIT}s.) exceeded for incoming messages')