Skip to content

Commit 5a5d4cb

Browse files
authored
fix: increase the limit for redis queues length (#170)
1 parent d76e63d commit 5a5d4cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/peer/storage/redis_storage.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ use bb8_redis::{
1616

1717
struct BacklogKey<'a>(&'a str);
1818

19+
const MAX_COMMANDS: isize = 10000;
20+
1921
impl<'a> ToRedisArgs for BacklogKey<'a> {
2022
fn write_redis_args<W>(&self, out: &mut W)
2123
where
@@ -95,7 +97,7 @@ impl RedisStorageBuilder {
9597
pub fn new(pool: Pool<RedisConnectionManager>) -> RedisStorageBuilder {
9698
RedisStorageBuilder {
9799
pool,
98-
max_commands: 500,
100+
max_commands: MAX_COMMANDS,
99101
}
100102
}
101103

0 commit comments

Comments
 (0)