about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--kittybox-rs/src/database/redis/mod.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/kittybox-rs/src/database/redis/mod.rs b/kittybox-rs/src/database/redis/mod.rs
index eeaa3f2..39ee852 100644
--- a/kittybox-rs/src/database/redis/mod.rs
+++ b/kittybox-rs/src/database/redis/mod.rs
@@ -44,6 +44,12 @@ lazy_static! {
         edit_post: redis::Script::new(include_str!("./edit_post.lua"))
     };
 }
+/*#[cfg(feature(lazy_cell))]
+static SCRIPTS_CELL: std::cell::LazyCell<RedisScripts> = std::cell::LazyCell::new(|| {
+    RedisScripts {
+        edit_post: redis::Script::new(include_str!("./edit_post.lua"))
+    }
+});*/
 
 #[derive(Clone)]
 pub struct RedisStorage {