Skip to content
This repository was archived by the owner on Apr 20, 2020. It is now read-only.

Commit 23ba26e

Browse files
committed
Revert RedisType instances from const to static
They need to be static since we want one instance in memory. const can be instantiated multiple times.
1 parent 4e6fb7a commit 23ba26e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use crate::error::Error;
1919
use crate::index::Index;
2020
use crate::redisjson::{Format, RedisJSON, SetOptions};
2121

22-
const REDIS_JSON_TYPE: RedisType = RedisType::new(
22+
static REDIS_JSON_TYPE: RedisType = RedisType::new(
2323
"ReJSON-RL",
2424
2,
2525
RedisModuleTypeMethods {
@@ -36,7 +36,7 @@ const REDIS_JSON_TYPE: RedisType = RedisType::new(
3636
},
3737
);
3838

39-
const REDIS_JSON_SCHEMA_TYPE: RedisType = RedisType::new(
39+
static REDIS_JSON_SCHEMA_TYPE: RedisType = RedisType::new(
4040
"ReJSON-SC",
4141
1,
4242
RedisModuleTypeMethods {

0 commit comments

Comments
 (0)