mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
feat(gateway): runtime_config_key in config
This commit is contained in:
parent
7ba16c1347
commit
bfa0071f90
2 changed files with 8 additions and 1 deletions
|
|
@ -35,7 +35,11 @@ async fn real_main() -> anyhow::Result<()> {
|
||||||
let runtime_config = Arc::new(
|
let runtime_config = Arc::new(
|
||||||
RuntimeConfig::new(
|
RuntimeConfig::new(
|
||||||
redis.clone(),
|
redis.clone(),
|
||||||
format!("gateway:{}", cluster_config().node_id),
|
format!(
|
||||||
|
"{}:{}",
|
||||||
|
libpk::config.runtime_config_key.as_ref().unwrap(),
|
||||||
|
cluster_config().node_id
|
||||||
|
),
|
||||||
)
|
)
|
||||||
.await?,
|
.await?,
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -116,6 +116,9 @@ pub struct PKConfig {
|
||||||
#[serde(default = "_json_log_default")]
|
#[serde(default = "_json_log_default")]
|
||||||
pub(crate) json_log: bool,
|
pub(crate) json_log: bool,
|
||||||
|
|
||||||
|
#[serde(default)]
|
||||||
|
pub runtime_config_key: Option<String>,
|
||||||
|
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
pub sentry_url: Option<String>,
|
pub sentry_url: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue