Skip to content

Commit 1155fc6

Browse files
goffrieConvex, Inc.
authored and
Convex, Inc.
committed
Remove unused BACKEND_STARTUP_DELAY (#37344)
GitOrigin-RevId: 90cc57c15b3c6bd92952cad662bb4147d0279e3d
1 parent 19e240e commit 1155fc6

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

crates/common/src/knobs.rs

-13
Original file line numberDiff line numberDiff line change
@@ -396,19 +396,6 @@ pub static DOCUMENT_RETENTION_DELAY: LazyLock<Duration> = LazyLock::new(|| {
396396
Duration::from_secs(env_config("DOCUMENT_RETENTION_DELAY", 60 * 60 * 24 * 90))
397397
});
398398

399-
/// The time backend should wait before it acquires the lease. This wait allows
400-
/// for the backend to be added to service discovery, before it renders the
401-
/// previous backends unusable.
402-
///
403-
/// Wait > 5 seconds before acquiring the backend lease, so we are added to
404-
/// traefik before we make the old backend unusable.
405-
pub static BACKEND_STARTUP_DELAY: LazyLock<Duration> = LazyLock::new(|| {
406-
Duration::from_secs(env_config(
407-
"BACKEND_STARTUP_DELAY_SECS",
408-
prod_override(0, 6),
409-
))
410-
});
411-
412399
/// When to start rejecting new additions to the search memory index.
413400
pub static TEXT_INDEX_SIZE_HARD_LIMIT: LazyLock<usize> =
414401
LazyLock::new(|| env_config("SEARCH_INDEX_SIZE_HARD_LIMIT", 100 * (1 << 20))); // 100 MiB

0 commit comments

Comments
 (0)