about summary refs log tree commit diff
path: root/src/database/redis
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/redis')
-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>,
 }