Skip to content

Commit

Permalink
[#60] Fix RedisCluster.ConfigManager going down during setup shards (
Browse files Browse the repository at this point in the history
  • Loading branch information
hT013 authored Sep 1, 2024
1 parent aa85a2e commit 0afc2bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/nebulex_redis_adapter/redis_cluster/config_manager.ex
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,11 @@ defmodule NebulexRedisAdapter.RedisCluster.ConfigManager do
end

defp connect(conn_opts) do
conn_opts =
conn_opts
|> Keyword.delete(:sync_connect)
|> Keyword.delete(:exit_on_disconnection)

case Keyword.pop(conn_opts, :url) do
{nil, conn_opts} ->
with {:ok, conn} <- Redix.start_link(conn_opts) do
Expand Down

0 comments on commit 0afc2bb

Please sign in to comment.