Skip to content

Commit

Permalink
fix: increase the limit for redis queues length (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
sameh-farouk authored Oct 3, 2023
1 parent d76e63d commit 5a5d4cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/peer/storage/redis_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ use bb8_redis::{

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

const MAX_COMMANDS: isize = 10000;

impl<'a> ToRedisArgs for BacklogKey<'a> {
fn write_redis_args<W>(&self, out: &mut W)
where
Expand Down Expand Up @@ -95,7 +97,7 @@ impl RedisStorageBuilder {
pub fn new(pool: Pool<RedisConnectionManager>) -> RedisStorageBuilder {
RedisStorageBuilder {
pool,
max_commands: 500,
max_commands: MAX_COMMANDS,
}
}

Expand Down

0 comments on commit 5a5d4cb

Please sign in to comment.