Bump version
All checks were successful
Build and push container image / build (push) Successful in 12m49s

This commit is contained in:
toast 2024-08-02 13:36:42 +10:00
parent 246cb301c4
commit 483ba390e9
3 changed files with 6 additions and 11 deletions

6
Cargo.lock generated
View File

@ -182,9 +182,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
[[package]] [[package]]
name = "bytes" name = "bytes"
version = "1.7.0" version = "1.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fca2be1d5c43812bae364ee3f30b3afcb7877cf59f4aeb94c66f313a41d2fac9" checksum = "8318a53db07bb3f8dca91a600466bdb3f2eaadeedfdbcf02e1accbad9271ba50"
[[package]] [[package]]
name = "camino" name = "camino"
@ -1020,7 +1020,7 @@ dependencies = [
[[package]] [[package]]
name = "kon" name = "kon"
version = "0.3.7" version = "0.3.8"
dependencies = [ dependencies = [
"bb8", "bb8",
"bb8-postgres", "bb8-postgres",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "kon" name = "kon"
version = "0.3.7" version = "0.3.8"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
@ -15,8 +15,8 @@ poise = "0.6.1"
regex = "1.10.5" regex = "1.10.5"
reqwest = { version = "0.12.5", features = ["json"] } reqwest = { version = "0.12.5", features = ["json"] }
serde = "1.0.204" serde = "1.0.204"
serde_json = "1.0.120" serde_json = "1.0.122"
sysinfo = "0.31.0" sysinfo = "0.31.2"
tokenservice-client = { version = "0.3.3", registry = "gitea" } tokenservice-client = { version = "0.3.3", registry = "gitea" }
tokio = { version = "1.39.2", features = ["macros", "signal", "rt-multi-thread"] } tokio = { version = "1.39.2", features = ["macros", "signal", "rt-multi-thread"] }
tokio-postgres = "0.7.11" tokio-postgres = "0.7.11"

View File

@ -1,6 +1,5 @@
use crate::internals::utils::token_path; use crate::internals::utils::token_path;
use poise::serenity_prelude::prelude::TypeMapKey;
use bb8_redis::{ use bb8_redis::{
bb8::Pool, bb8::Pool,
redis::cmd, redis::cmd,
@ -19,10 +18,6 @@ pub struct RedisController {
pool: Pool<RedisConnectionManager> pool: Pool<RedisConnectionManager>
} }
impl TypeMapKey for RedisController {
type Value = RedisController;
}
impl RedisController { impl RedisController {
pub async fn new() -> Result<Self, RedisError> { pub async fn new() -> Result<Self, RedisError> {
let manager = RedisConnectionManager::new(token_path().await.redis_uri.as_str())?; let manager = RedisConnectionManager::new(token_path().await.redis_uri.as_str())?;