Skip to content

Commit ed895f5

Browse files
lightseek-botdongjiyingdjy
authored andcommitted
style: format hybrid prefix cache scheduler code
Signed-off-by: lightseek-bot <243258330+lightseek-bot@users.noreply.github.com>
1 parent bae5df6 commit ed895f5

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

tokenspeed-scheduler/csrc/resource/hybrid_prefix_cache/hybrid_prefix_cache.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,8 +1501,7 @@ void HybridPrefixCache::CommitChunk(const std::string& request_id, TreeNode* ter
15011501
last_committed = target;
15021502
}
15031503

1504-
const bool terminal_state_committed =
1505-
commitTerminalContinuationSnapshot(tables, terminal, chunk_depth);
1504+
const bool terminal_state_committed = commitTerminalContinuationSnapshot(tables, terminal, chunk_depth);
15061505

15071506
// Release superseded interior continuation-state snapshots.
15081507
//
@@ -1530,8 +1529,8 @@ void HybridPrefixCache::CommitChunk(const std::string& request_id, TreeNode* ter
15301529
for (const auto& gid : paged_cache_continuation_state_groups_) {
15311530
auto alloc_it = paged_cache_allocators_.find(gid);
15321531
if (alloc_it != paged_cache_allocators_.end() && alloc_it->second != nullptr) {
1533-
max_state_window = std::max(
1534-
max_state_window, alloc_it->second->Config().sliding_window_tokens.value_or(0));
1532+
max_state_window =
1533+
std::max(max_state_window, alloc_it->second->Config().sliding_window_tokens.value_or(0));
15351534
}
15361535
}
15371536
for (TreeNode* cur = terminal->Parent(); cur != nullptr && !cur->IsRoot(); cur = cur->Parent()) {

0 commit comments

Comments
 (0)