summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2022-05-13 20:46:20 +0200
committerJoel Rosdahl <joel@rosdahl.net>2022-05-14 20:41:32 +0200
commitb9f607b70d4c4c79fa9a9d6f11e433ba29f6ce5d (patch)
tree7e07f613ecb7b933252787a9bea8ac8e2d9dd223
parentd77b1675c1d0f394c71d4cdd87923ae83a7b5de3 (diff)
downloadccache-b9f607b70d4c4c79fa9a9d6f11e433ba29f6ce5d.tar.gz
fix: Support Redis URL without host
-rw-r--r--src/storage/secondary/RedisStorage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/storage/secondary/RedisStorage.cpp b/src/storage/secondary/RedisStorage.cpp
index a607d229..32bc4ae3 100644
--- a/src/storage/secondary/RedisStorage.cpp
+++ b/src/storage/secondary/RedisStorage.cpp
@@ -230,11 +230,11 @@ RedisStorageBackend::connect(const Url& url,
ASSERT(url.path().empty() || url.path()[0] == '/');
LOG("Redis connecting to {}:{} (connect timeout {} ms)",
- url.host(),
+ host,
port,
connect_timeout);
- m_context.reset(redisConnectWithTimeout(
- url.host().c_str(), port, to_timeval(connect_timeout)));
+ m_context.reset(
+ redisConnectWithTimeout(host.c_str(), port, to_timeval(connect_timeout)));
if (!m_context) {
throw Failed("Redis context construction error");