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:
Graham McIntire 2026-01-24 17:49:57 -06:00
parent a84fc07e42
commit 83868a6028
No known key found for this signature in database

View file

@ -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]