Commit 66d6c60
refactor: inline
The `remaining = deadline - time.monotonic()` local served a single
use on the very next line as `max(remaining, 0)`. Collapsing to
`max(deadline - time.monotonic(), 0)` matches the inline-alias style
established by e1ad87a (`binary`), 497c028 (`agent`), fc5e1cb
(`total_in`), 52e0272 (`msg`), and ce487d3 (`text`). Updated the
adjacent comment to refer to "clamp to 0" since the `remaining` name
no longer exists.
Behavior preserved — same value reaches `line_q.get(timeout=...)` on
every iteration of the read loop.
Co-authored-by: Ralphify <noreply@ralphify.co>remaining alias in _read_agent_stream timeout calc1 parent 68c3def commit 66d6c60
1 file changed
Lines changed: 4 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
356 | 354 | | |
357 | 355 | | |
358 | 356 | | |
| |||
0 commit comments