Skip to content

Commit 4671b5b

Browse files
committed
refactor: drop redundant timing flush in checkSession
1 parent caf6009 commit 4671b5b

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

lib/state/state.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,6 @@ export const checkSession = async (
5151
}
5252
}
5353

54-
if (state.sessionId === lastSessionId) {
55-
const applied = applyPendingCompressionDurations(state, lastSessionId)
56-
if (applied > 0) {
57-
saveSessionState(state, logger).catch((error) => {
58-
logger.warn("Failed to persist queued compression time updates", {
59-
error: error instanceof Error ? error.message : String(error),
60-
})
61-
})
62-
}
63-
}
64-
6554
const lastCompactionTimestamp = findLastCompactionTimestamp(messages)
6655
if (lastCompactionTimestamp > state.lastCompaction) {
6756
state.lastCompaction = lastCompactionTimestamp

0 commit comments

Comments
 (0)