Skip to content

Commit dc85491

Browse files
Apply suggestions from code review
Co-authored-by: Nick <[email protected]>
1 parent f40c242 commit dc85491

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rust/operator-binary/src/superset_controller.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -939,24 +939,24 @@ fn add_superset_container_probes(superset_cb: &mut ContainerBuilder) {
939939
common
940940
.clone()
941941
.with_failure_threshold_duration(Duration::from_minutes_unchecked(10))
942-
.expect("static period is always non-zero")
942+
.expect("const period is non-zero")
943943
.build()
944-
.expect("static durations are not too long"),
944+
.expect("const duration does not overflow"),
945945
);
946946

947947
// Remove it from the Service immediately
948948
superset_cb.readiness_probe(
949949
common
950950
.clone()
951951
.build()
952-
.expect("static durations are not too long"),
952+
.expect("const duration does not overflow"),
953953
);
954954
// But only restart it after 3 failures
955955
superset_cb.liveness_probe(
956956
common
957957
.with_failure_threshold(3)
958958
.build()
959-
.expect("static durations are not too long"),
959+
.expect("const duration does not overflow"),
960960
);
961961
}
962962

0 commit comments

Comments
 (0)