Skip to content

Commit 8d7265e

Browse files
razvanNickLarsenNZ
andauthored
Update rust/crd/src/lib.rs
Co-authored-by: Nick <[email protected]>
1 parent c2c92c5 commit 8d7265e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

rust/crd/src/lib.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,11 @@ pub const METRICS_PORT: u16 = 9100;
8686
pub const JVM_HEAP_FACTOR: f32 = 0.8;
8787

8888
const DEFAULT_MASTER_GRACEFUL_SHUTDOWN_TIMEOUT: Duration = Duration::from_minutes_unchecked(20);
89-
// The following three values should be kept in sync so that
90-
// DEFAULT_REGION_SERVER_GRACEFUL_SHUTDOWN_TIMEOUT = DEFAULT_REGION_MOVER_TIMEOUT + DEFAULT_REGION_MOVER_DELTA_TO_SHUTDOWN
91-
const DEFAULT_REGION_SERVER_GRACEFUL_SHUTDOWN_TIMEOUT: Duration =
92-
Duration::from_minutes_unchecked(60);
93-
// This should always be slightly less than the above
94-
const DEFAULT_REGION_MOVER_TIMEOUT: Duration = Duration::from_minutes_unchecked(59);
89+
const DEFAULT_REGION_MOVER_TIMEOUT: Duration = Duration::from_minutes_unchecked(59);
9590
const DEFAULT_REGION_MOVER_DELTA_TO_SHUTDOWN: Duration = Duration::from_minutes_unchecked(1);
91+
const DEFAULT_REGION_SERVER_GRACEFUL_SHUTDOWN_TIMEOUT: Duration = DEFAULT_REGION_MOVER_TIMEOUT + DEFAULT_REGION_MOVER_DELTA_TO_SHUTDOWN;
92+
93+
9694
const DEFAULT_REST_SERVER_GRACEFUL_SHUTDOWN_TIMEOUT: Duration = Duration::from_minutes_unchecked(5);
9795

9896
#[derive(Snafu, Debug)]

0 commit comments

Comments
 (0)