Commit 47e8615e authored by Nick Thomas's avatar Nick Thomas

Don't use a reconnect argument to Process(), it's unnecessary

parent 0e777472
...@@ -104,13 +104,10 @@ func dialPubSub(dialer redisDialerFunc) (redis.Conn, error) { ...@@ -104,13 +104,10 @@ func dialPubSub(dialer redisDialerFunc) (redis.Conn, error) {
// Process redis subscriptions // Process redis subscriptions
// //
// NOTE: There Can Only Be One! // NOTE: There Can Only Be One!
// Reconnects is reconnect = true func Process() {
func Process(reconnect bool) {
log.Print("Processing redis queue") log.Print("Processing redis queue")
loop := true for {
for loop {
loop = reconnect
log.Println("Connecting to redis") log.Println("Connecting to redis")
conn, err := dialPubSub(workerDialFunc) conn, err := dialPubSub(workerDialFunc)
...@@ -123,7 +120,6 @@ func Process(reconnect bool) { ...@@ -123,7 +120,6 @@ func Process(reconnect bool) {
if err = processInner(conn); err != nil { if err = processInner(conn); err != nil {
helper.LogError(nil, fmt.Errorf("Failed to process redis-queue: %s", err)) helper.LogError(nil, fmt.Errorf("Failed to process redis-queue: %s", err))
continue
} }
} }
} }
......
...@@ -134,7 +134,7 @@ func main() { ...@@ -134,7 +134,7 @@ func main() {
cfg.Redis = cfgFromFile.Redis cfg.Redis = cfgFromFile.Redis
redis.Configure(cfg.Redis, redis.DefaultDialFunc) redis.Configure(cfg.Redis, redis.DefaultDialFunc)
go redis.Process(true) go redis.Process()
} }
up := wrapRaven(upstream.NewUpstream(cfg)) up := wrapRaven(upstream.NewUpstream(cfg))
......
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