about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2021-05-05 22:51:07 +0300
committerVika <vika@fireburn.ru>2021-05-05 22:51:07 +0300
commitd56fcb55c033e47d5b4ccadef5032f6f0412b642 (patch)
tree414cd4aff3bd6d6305465044b9977cb6b66c1c4b
parent99f9e7c0eda7b1fca55f82cd6f778f13d089a899 (diff)
downloadkittybox-d56fcb55c033e47d5b4ccadef5032f6f0412b642.tar.zst
Added a note to future self
-rw-r--r--src/database/redis/mod.rs7
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>,
 }