Skip to content

Commit 227fef9

Browse files
authored
Merge pull request #208 from LemmyNet/main
[pull] master from LemmyNet:main
2 parents 8181965 + 9e17c51 commit 227fef9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

crates/api_common/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ use tracing::warn;
7676
use url::{ParseError, Url};
7777
use urlencoding::encode;
7878

79-
pub static AUTH_COOKIE_NAME: &str = "jwt";
79+
pub const AUTH_COOKIE_NAME: &str = "jwt";
8080

8181
#[tracing::instrument(skip_all)]
8282
pub async fn is_mod_or_admin(

crates/federate/src/worker.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ const MAX_SUCCESSFULS: usize = 1000;
4444

4545
/// in prod mode, try to collect multiple send results at the same time to reduce load
4646
#[cfg(not(test))]
47-
static MIN_ACTIVITY_SEND_RESULTS_TO_HANDLE: usize = 4;
47+
const MIN_ACTIVITY_SEND_RESULTS_TO_HANDLE: usize = 4;
4848
#[cfg(test)]
49-
static MIN_ACTIVITY_SEND_RESULTS_TO_HANDLE: usize = 0;
49+
const MIN_ACTIVITY_SEND_RESULTS_TO_HANDLE: usize = 0;
5050

5151
///
5252
/// SendManager --(has many)--> InstanceWorker --(has many)--> SendRetryTask

crates/utils/src/settings/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub mod structs;
1010

1111
use structs::{DatabaseConnection, PictrsConfig, PictrsImageMode, Settings};
1212

13-
static DEFAULT_CONFIG_FILE: &str = "config/config.hjson";
13+
const DEFAULT_CONFIG_FILE: &str = "config/config.hjson";
1414

1515
#[allow(clippy::expect_used)]
1616
pub static SETTINGS: LazyLock<Settings> = LazyLock::new(|| {

0 commit comments

Comments
 (0)