fix(client): start ring state polling after 9s instead of 15s - #2492
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (1)No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (3)
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthroughThe default delay before ChangesRing-state polling delay
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~5 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to The updated default is covered by a test that exercises the poller without options; no concrete issue remains that should block merging. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The earlier polling uses the same caller eligibility checks, call scope, and configurable options. No new access or privilege expansion was identified. Some uncertainty remains around responses arriving during cancellation or after the ring deadline. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Bundle sizeBuilt package output. Sizes in KB; delta vs No significant package size increase vs |
💡 Overview
Lowers the default quiet period before
RingStatePollerstarts polling the ring state from 15s to 9s. In a 30s ring window, a caller that missedcall.accepted/call.rejected/call.missednow gets an answer sooner, with polls at about 9/14/19/24/29s instead of 15/20/25/30s.📝 Implementation notes
RingStatePollingOptions.startAfterMsJSDoc and the test constant updated to match. Can still be overridden throughstartAfterMs.🎫 Ticket: https://linear.app/stream/issue/VID-1444
Summary by CodeRabbit