diff options
author | Vika <vika@fireburn.ru> | 2021-05-05 22:51:07 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2021-05-05 22:51:07 +0300 |
commit | d56fcb55c033e47d5b4ccadef5032f6f0412b642 (patch) | |
tree | 414cd4aff3bd6d6305465044b9977cb6b66c1c4b /src/database | |
parent | 99f9e7c0eda7b1fca55f82cd6f778f13d089a899 (diff) | |
download | kittybox-d56fcb55c033e47d5b4ccadef5032f6f0412b642.tar.zst |
Added a note to future self
Diffstat (limited to 'src/database')
-rw-r--r-- | src/database/redis/mod.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/database/redis/mod.rs b/src/database/redis/mod.rs index a3b4bf8..85360e8 100644 --- a/src/database/redis/mod.rs +++ b/src/database/redis/mod.rs @@ -44,6 +44,13 @@ lazy_static! { #[derive(Clone)] pub struct RedisStorage { + // note to future Vika: + // mobc::Pool is actually a fancy name for an Arc + // around a shared connection pool with a manager + // which makes it safe to implement [`Clone`] and + // not worry about new pools being suddenly made + // + // stop worrying and start coding, you dum-dum redis: mobc::Pool<RedisConnectionManager>, } |