Skip to content

Commit 2f379bb

Browse files
committed
Keep the wrap-up rule's comment on its function
A helper added for the behavioral judgment reserve landed between should_send_wrap_up and its doc comment, so the comment described the helper and the rule it explains was left undocumented.
1 parent 025921b commit 2f379bb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/livekit/turn.rs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1984,9 +1984,6 @@ pub(super) fn closing_order(
19841984
/// losing the interviewer costs the goodbye and not the assessment.
19851985
pub(super) const INTERVIEWER_UNAVAILABLE: &str = "interviewer_unavailable";
19861986

1987-
/// No goodbye for a candidate who left, and none from an interviewer that
1988-
/// stopped answering: asking it for one would only spend `WRAP_UP_WAIT` in
1989-
/// silence before the report the candidate is waiting for.
19901987
/// Whether a behavioral round may still open, which the coding round's routine
19911988
/// judgments leave `BEHAVIORAL_PHASE_JUDGES` for.
19921989
fn reserves_for_behavioral(state: &RuntimeState) -> bool {
@@ -1995,6 +1992,9 @@ fn reserves_for_behavioral(state: &RuntimeState) -> bool {
19951992
&& !state.round_transition_seen
19961993
}
19971994

1995+
/// No goodbye for a candidate who left, and none from an interviewer that
1996+
/// stopped answering: asking it for one would only spend `WRAP_UP_WAIT` in
1997+
/// silence before the report the candidate is waiting for.
19981998
pub(super) fn should_send_wrap_up(reason: &str) -> bool {
19991999
reason != "candidate_ended" && reason != INTERVIEWER_UNAVAILABLE
20002000
}

0 commit comments

Comments
 (0)