(&mut self, now: i64, ttl_seconds: i64)
| 233 | } |
| 234 | |
| 235 | fn renew(&mut self, now: i64, ttl_seconds: i64) { |
| 236 | self.updated_at = now; |
| 237 | self.expires_at = now + ttl_seconds.max(1); |
| 238 | } |
| 239 | |
| 240 | /// Whether a hook from `agent_name` running in `cwd` participates in |
| 241 | /// this run: the cwd must be inside the run's workdir, and the agent |