mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 00:30:11 +00:00
feat: send events from gateway to bot over http
This commit is contained in:
parent
a72afb35a0
commit
2578eb0e3c
8 changed files with 134 additions and 15 deletions
|
|
@ -43,6 +43,7 @@ pub fn init_logging(component: &str) {
|
|||
tracing_subscriber::registry()
|
||||
.with(sentry_layer)
|
||||
.with(tracing_subscriber::fmt::layer())
|
||||
.with(EnvFilter::from_default_env())
|
||||
.init();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ impl RuntimeConfig {
|
|||
settings.insert(key, value);
|
||||
}
|
||||
|
||||
info!("starting with runtime config: {:?}", self.settings);
|
||||
info!("starting with runtime config: {:?}", settings);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
@ -58,8 +58,8 @@ impl RuntimeConfig {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub async fn get(&self, key: String) -> Option<String> {
|
||||
self.settings.read().await.get(&key).cloned()
|
||||
pub async fn get(&self, key: &str) -> Option<String> {
|
||||
self.settings.read().await.get(key).cloned()
|
||||
}
|
||||
|
||||
pub async fn exists(&self, key: &str) -> bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue