Queer European MD passionate about IT
Procházet zdrojové kódy

Shorten buffer time for calculation sessions

Davte před 4 roky
rodič
revize
8977e0fbc3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      davtelepot/useful_tools.py

+ 1 - 1
davtelepot/useful_tools.py

@@ -360,7 +360,7 @@ def evaluate_expressions(bot: Bot,
 async def calculate_session(bot: Bot,
                             record_id: int,
                             language: str,
-                            buffer_seconds: Union[int, float] = 1):
+                            buffer_seconds: Union[int, float] = .5):
     # Wait until input ends
     queue = bot.shared_data['calc'][record_id]
     queue_len = None