Round adoption span inside adopt_draft (finish_round stays within the function limit)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
9c93828614
commit
5ca83a261e
@@ -197,6 +197,7 @@ impl OriginalSpecController {
|
||||
round_ms: impl FnOnce() -> f64,
|
||||
mut cancel: impl FnMut() -> bool,
|
||||
) -> SpecResult<()> {
|
||||
let _adopt = crate::qwen_forward::original_serve_profile::span("round.adopt");
|
||||
let r = self.request.as_mut().ok_or(Error::IdentityMismatch)?;
|
||||
let drafts_after = next.as_ref().map_or(0, |b| b.produced());
|
||||
if let Some(batch) = next {
|
||||
|
||||
+1
-4
@@ -36,10 +36,7 @@ impl OriginalSpecController {
|
||||
self.fail_request();
|
||||
Err(e)
|
||||
}
|
||||
Ok(next) => {
|
||||
let _adopt = crate::qwen_forward::original_serve_profile::span("round.adopt");
|
||||
self.adopt_draft(&facts, next, round_ms, cancel)
|
||||
}
|
||||
Ok(next) => self.adopt_draft(&facts, next, round_ms, cancel),
|
||||
}
|
||||
}
|
||||
/// Original wait_commit occurs before any session checkpoint/reuse reads.
|
||||
|
||||
Reference in New Issue
Block a user