Skip to content

Commit 301af0f

Browse files
committed
Do not hardcode host
1 parent fb801ec commit 301af0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Redis/RedisClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ open class RedisClient : RedisCommandTarget {
416416

417417
state = .connecting
418418
retryInfo.attempt += 1
419-
return bootstrap.connect(host: "localhost", port: DefaultRedisPort)
419+
return bootstrap.connect(host: host, port: port)
420420
.map { channel in
421421
self.retryInfo.registerSuccessfulConnect()
422422

0 commit comments

Comments
 (0)