Skip to content

Commit 227d3a2

Browse files
authored
Remove BATCH_UPDATE_DOWNLOADS feature flag (#8200)
We've very successfully used this on production for almost two weeks now. There does not appear to be any reason for switching it back off, so this commit is removing the feature flag and permanently enables the batch processing.
1 parent 29fef9b commit 227d3a2

File tree

3 files changed

+36
-316
lines changed

3 files changed

+36
-316
lines changed

src/config/server.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ pub struct Server {
4545
pub cdn_log_counting_enabled: bool,
4646
pub cdn_log_storage: CdnLogStorageConfig,
4747
pub cdn_log_queue: CdnLogQueueConfig,
48-
/// If `true`, the `update_downloads` background job will use batch
49-
/// processing with a static SQL query.
50-
pub batch_update_downloads: bool,
5148
pub session_key: cookie::Key,
5249
pub gh_client_id: ClientId,
5350
pub gh_client_secret: ClientSecret,
@@ -189,7 +186,6 @@ impl Server {
189186
cdn_log_counting_enabled: var("CDN_LOG_COUNTING_ENABLED")?.is_some(),
190187
cdn_log_storage: CdnLogStorageConfig::from_env()?,
191188
cdn_log_queue: CdnLogQueueConfig::from_env()?,
192-
batch_update_downloads: var("BATCH_UPDATE_DOWNLOADS")?.is_some(),
193189
base,
194190
ip,
195191
port,

src/tests/util/test_app.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,6 @@ fn simple_config() -> config::Server {
431431
cdn_log_counting_enabled: false,
432432
cdn_log_queue: CdnLogQueueConfig::Mock,
433433
cdn_log_storage: CdnLogStorageConfig::memory(),
434-
batch_update_downloads: true,
435434
session_key: cookie::Key::derive_from("test this has to be over 32 bytes long".as_bytes()),
436435
gh_client_id: ClientId::new(dotenvy::var("GH_CLIENT_ID").unwrap_or_default()),
437436
gh_client_secret: ClientSecret::new(dotenvy::var("GH_CLIENT_SECRET").unwrap_or_default()),

0 commit comments

Comments
 (0)