mirror of
https://github.com/mii443/ncb-tts-r2.git
synced 2025-08-22 16:15:29 +00:00
fix warnings
This commit is contained in:
@ -13,7 +13,7 @@ gcp_auth = "0.5.0"
|
|||||||
reqwest = { version = "0.11", features = ["json"] }
|
reqwest = { version = "0.11", features = ["json"] }
|
||||||
base64 = "0.13"
|
base64 = "0.13"
|
||||||
async-trait = "0.1.57"
|
async-trait = "0.1.57"
|
||||||
redis = "*"
|
redis = "0.29.2"
|
||||||
regex = "1"
|
regex = "1"
|
||||||
tracing-subscriber = "0.3.19"
|
tracing-subscriber = "0.3.19"
|
||||||
lru = "0.13.0"
|
lru = "0.13.0"
|
||||||
|
@ -84,7 +84,7 @@ impl Database {
|
|||||||
autostart_channel_id: None,
|
autostart_channel_id: None,
|
||||||
};
|
};
|
||||||
|
|
||||||
self.client.get_connection().unwrap().set(
|
self.client.get_connection().unwrap().set::<String, String, ()>(
|
||||||
format!("discord_server:{}", server_id),
|
format!("discord_server:{}", server_id),
|
||||||
serde_json::to_string(&config).unwrap(),
|
serde_json::to_string(&config).unwrap(),
|
||||||
)?;
|
)?;
|
||||||
@ -107,7 +107,7 @@ impl Database {
|
|||||||
voicevox_speaker: Some(1),
|
voicevox_speaker: Some(1),
|
||||||
};
|
};
|
||||||
|
|
||||||
self.client.get_connection().unwrap().set(
|
self.client.get_connection().unwrap().set::<String, String, ()>(
|
||||||
format!("discord_user:{}", user_id),
|
format!("discord_user:{}", user_id),
|
||||||
serde_json::to_string(&config).unwrap(),
|
serde_json::to_string(&config).unwrap(),
|
||||||
)?;
|
)?;
|
||||||
|
Reference in New Issue
Block a user