Skip to content

feat: add configurable ntpTrustThreshold option - #968

Merged
frostbyte73 merged 1 commit into
livekit:mainfrom
jibon57:opt_ntpTrustThreshold
Aug 18, 2026
Merged

feat: add configurable ntpTrustThreshold option#968
frostbyte73 merged 1 commit into
livekit:mainfrom
jibon57:opt_ntpTrustThreshold

Conversation

@jibon57

@jibon57 jibon57 commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Adds WithSyncEngineNtpTrustThreshold(d time.Duration) so the previously hardcoded 500ms NTP-vs-wall-clock trust threshold can be configured per SyncEngine.

  • Default remains 500ms (defaultNtpTrustThreshold); existing behavior is unchanged.
  • syncEngineTrack.GetPTS now clamps against st.engine.ntpTrustThreshold.

@jibon57
jibon57 requested a review from a team as a code owner August 18, 2026 05:38

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

@frostbyte73
frostbyte73 merged commit 3591b17 into livekit:main Aug 18, 2026
4 of 7 checks passed
@jibon57
jibon57 deleted the opt_ntpTrustThreshold branch August 19, 2026 02:24
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.

2 participants