Skip to content

Commit 5260fa1

Browse files
authored
Revert sleep time to 1.1 from 2.0 (#41)
Apparently there's a hardcoded value of `1.2` in https://github.com/faust-streaming/mode/blob/17c5d2996e4706baa37b18bd8fa03687409120ad/mode/timers.py#L13 so we may have made a terrible mistake.
1 parent 17c5d29 commit 5260fa1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mode/threads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ async def start(self) -> None:
181181

182182
async def _keepalive2(self) -> None:
183183
while not self.should_stop:
184-
await self.sleep(2.0)
184+
await self.sleep(1.1)
185185
if self.last_wakeup_at:
186186
if monotonic() - self.last_wakeup_at > 3.0:
187187
self.log.error("Thread keepalive is not responding...")

0 commit comments

Comments
 (0)