Skip to content

Commit

Permalink
add more error parse
Browse files Browse the repository at this point in the history
  • Loading branch information
mtokioka committed Jun 9, 2017
1 parent d239d53 commit 0a89e4b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/redix_cluster/run.ex
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ defmodule RedixCluster.Run do
RedixCluster.Monitor.refresh_mapping(version)
{:error, :retry}
end
defp parse_trans_result({:error, %Redix.Error{message: <<"CLUSTERDOWN", _::binary>>}}, {version, _pool_name}, _command, _type, _opts) do
RedixCluster.Monitor.refresh_mapping(version)
{:error, :retry}
end
defp parse_trans_result(payload, _, _, _, _), do: payload

defp verify_command_key(term1, term2) do
Expand Down

0 comments on commit 0a89e4b

Please sign in to comment.