mirror of
https://github.com/block/buzz.git
synced 2026-11-06 17:31:19 +00:00
docs(buzz-acp): fix stale prepare_reconnect doc comment (#8697)
## Summary Follow-up to #8653. The `prepare_reconnect` doc comment in `crates/buzz-acp/src/relay.rs` still said it runs `begin_reconnect` "with the real clock and RNG". `begin_reconnect` stopped taking a clock when `live_until` moved to #8688, so the comment now says "with the real RNG". Comment-only change. **What got simpler:** nothing in the code changes; the doc now matches it. ### Related issue N/A. This was a review note on #8653. ### Testing Comment-only change, so I ran nothing locally. CI covers fmt and clippy. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Luke Tornquist <tornquist@squareup.com> Co-authored-by: Elrond <28d6302a099e5225b02c4155ac4236e4912603df2ab08dbfc2f4fef08ce598c8@buzz.block.builderlab.xyz> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3785,7 +3785,7 @@ async fn shutdown_aware_sleep(
|
||||
}
|
||||
|
||||
/// Reconnect entry shared by `try_autonomous_reconnect` and
|
||||
/// `wait_for_reconnect`: runs [`begin_reconnect`] with the real clock and RNG,
|
||||
/// `wait_for_reconnect`: runs [`begin_reconnect`] with the real RNG,
|
||||
/// then waits out the first-attempt delay. Returns `false` on shutdown.
|
||||
async fn prepare_reconnect(cmd_rx: &mut mpsc::Receiver<RelayCommand>, state: &mut BgState) -> bool {
|
||||
let delay = begin_reconnect(state, random_unit_sample());
|
||||
|
||||
Reference in New Issue
Block a user