| 309 | // of a large chunk, trailers, the terminating chunk — be consumed after the |
| 310 | // deadline has passed, which is not what "deadline" means to a caller reasoning |
| 311 | // about how long the model can be held. |
| 312 | void require_within_deadline() const { |
| 313 | if (limits_.total_timeout_ms <= 0) { |
| 314 | return; |
| 315 | } |
| 316 | const auto elapsed = std::chrono::duration_cast<std::chrono::milliseconds>( |
| 317 | std::chrono::steady_clock::now() - started_) |
| 318 | .count(); |
no test coverage detected