Commit 430c67c1 authored by Jacob Vosmaer's avatar Jacob Vosmaer

Merge branch 'fix-typo-in-url-scheme' into 'master'

Fix typo in redis URL scheme

See merge request gitlab-org/gitlab-workhorse!631
parents 8b157fd2 ac24b5bc
---
title: Fix typo in redis URL scheme
merge_request: 631
author:
type: fixed
...@@ -100,7 +100,7 @@ func sentinelConn(master string, urls []config.TomlURL) *sentinel.Sentinel { ...@@ -100,7 +100,7 @@ func sentinelConn(master string, urls []config.TomlURL) *sentinel.Sentinel {
redis.DialWriteTimeout(timeout), redis.DialWriteTimeout(timeout),
} }
if url.Scheme == "redis" || url.Scheme == "redisss" { if url.Scheme == "redis" || url.Scheme == "rediss" {
c, err = redis.DialURL(addr, options...) c, err = redis.DialURL(addr, options...)
} else { } else {
c, err = redis.Dial("tcp", url.Host, options...) c, err = redis.Dial("tcp", url.Host, options...)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment