Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-workhorse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-workhorse
Commits
c805ae8c
Commit
c805ae8c
authored
Mar 13, 2017
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sentinel address parsing
parent
18536234
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
internal/redis/redis.go
internal/redis/redis.go
+4
-1
No files found.
internal/redis/redis.go
View file @
c805ae8c
...
...
@@ -3,6 +3,7 @@ package redis
import
(
"errors"
"fmt"
"log"
"net"
"net/url"
"time"
...
...
@@ -63,7 +64,9 @@ func sentinelConn(master string, urls []config.TomlURL) *sentinel.Sentinel {
}
var
addrs
[]
string
for
_
,
url
:=
range
urls
{
addrs
=
append
(
addrs
,
url
.
URL
.
String
())
h
:=
url
.
URL
.
Host
log
.
Printf
(
"redis: using sentinel %q"
,
h
)
addrs
=
append
(
addrs
,
h
)
}
return
&
sentinel
.
Sentinel
{
Addrs
:
addrs
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment