Skip to content

fix(mock): honor configurable flushInterval in SnapshotRecorder#5040

Open
deepview-autofix wants to merge 1 commit intonodejs:mainfrom
deepview-autofix:deepview/e043066db7
Open

fix(mock): honor configurable flushInterval in SnapshotRecorder#5040
deepview-autofix wants to merge 1 commit intonodejs:mainfrom
deepview-autofix:deepview/e043066db7

Conversation

@deepview-autofix
Copy link
Copy Markdown
Contributor

The SnapshotRecorder constructor accepted a flushInterval option (and documented a 30s default), but #scheduleFlush always used a hardcoded 1000ms timeout, so the option had no effect on auto-flush timing.

Use this.flushInterval in #scheduleFlush so the configured value actually controls how often snapshots are written to disk.

The SnapshotRecorder constructor accepted a `flushInterval` option (and
documented a 30s default), but `#scheduleFlush` always used a hardcoded
1000ms timeout, so the option had no effect on auto-flush timing.

Use `this.flushInterval` in `#scheduleFlush` so the configured value
actually controls how often snapshots are written to disk.

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: DeepView Autofix <276251120+deepview-autofix@users.noreply.github.com>
Co-Authored-By: Nikita Skovoroda <chalkerx@gmail.com>
Signed-off-by: Nikita Skovoroda <chalkerx@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant