Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit dbb9b0f

Browse files
committed
v2: sync escalation every 30 seconds on pager
1 parent 9da666c commit dbb9b0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

v2/pager/pager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import (
4141
const PAGE_SIZE = 1024 // Page size
4242
const HEADER_SIZE = 16 // next (overflowed)
4343
const SYNC_TICK_INTERVAL = 1 * time.Second // tick interval for syncing the file
44-
const SYNC_ESCALATION = 1 * time.Minute // if the file is not synced in 1 minute, sync it
44+
const SYNC_ESCALATION = 30 * time.Second // if the file is not synced 30 seconds, sync it
4545
const WRITE_THRESHOLD = 24576 // every 24576 writes, sync the file
4646

4747
// Pager manages pages in a file

0 commit comments

Comments
 (0)