fedimint_server/
envs.rs

1
2
3
4
5
6
7
8
9
10
11
/// The env var for maximum open connections the API can handle
pub const FM_MAX_CLIENT_CONNECTIONS_ENV: &str = "FM_MAX_CLIENT_CONNECTIONS";
pub const FM_PEER_ID_SORT_BY_URL_ENV: &str = "FM_PEER_ID_SORT_BY_URL";

/// Environment variable for the session count determining when to cleanup old
/// checkpoints.
pub const FM_DB_CHECKPOINT_RETENTION_ENV: &str = "FM_DB_CHECKPOINT_RETENTION";

// Default number of checkpoints from the current session should be retained on
// disk.
pub const FM_DB_CHECKPOINT_RETENTION_DEFAULT: u64 = 1;