diff --git a/Cargo.toml b/Cargo.toml index 16e75b7..7f7251c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,7 @@ gcp_auth = "0.5.0" reqwest = { version = "0.11", features = ["json"] } base64 = "0.13" async-trait = "0.1.57" -redis = "*" +redis = "0.29.2" regex = "1" tracing-subscriber = "0.3.19" lru = "0.13.0" diff --git a/src/database/database.rs b/src/database/database.rs index 0cd6177..d0ede00 100644 --- a/src/database/database.rs +++ b/src/database/database.rs @@ -84,7 +84,7 @@ impl Database { autostart_channel_id: None, }; - self.client.get_connection().unwrap().set( + self.client.get_connection().unwrap().set::( format!("discord_server:{}", server_id), serde_json::to_string(&config).unwrap(), )?; @@ -107,7 +107,7 @@ impl Database { voicevox_speaker: Some(1), }; - self.client.get_connection().unwrap().set( + self.client.get_connection().unwrap().set::( format!("discord_user:{}", user_id), serde_json::to_string(&config).unwrap(), )?;