Skip to content

Commit

Permalink
modifying args for redis pool
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiPresario001 committed Dec 19, 2024
1 parent 7786fbf commit b231ee8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions validator/organic_node/src/core/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,9 @@ def create_redis_pool(
pool_kwargs["max_idle_connections"] = max_idle_connections

if "://" in host:
connection_kwargs = {
"connection_pool_class_kwargs": {
"timeout": idle_timeout,
}
}
return BlockingConnectionPool.from_url(
host,
**pool_kwargs,
**connection_kwargs
**pool_kwargs
)
else:
pool_kwargs["host"] = host
Expand Down

0 comments on commit b231ee8

Please sign in to comment.