fix: remove to_charlist conversion for Redix host option
Redix expects host to be a string, not a charlist. The to_charlist/1 conversion was causing FunctionClauseError in Redix.StartOptions.__validate_host__/1. This matches how Phoenix PubSub Redis and Exq are configured, which both use the string host directly without conversion.
This commit is contained in:
parent
a84fc07e42
commit
83868a6028
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ defmodule Towerops.RedisHealthCheck do
|
|||
|
||||
# Build connection options
|
||||
conn_opts = [
|
||||
host: to_charlist(host),
|
||||
host: host,
|
||||
port: port,
|
||||
timeout: timeout_ms,
|
||||
socket_opts: [keepalive: true]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue