From d56fcb55c033e47d5b4ccadef5032f6f0412b642 Mon Sep 17 00:00:00 2001 From: Vika Date: Wed, 5 May 2021 22:51:07 +0300 Subject: Added a note to future self --- src/database/redis/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) 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, } -- cgit 1.4.1