jrallison/go-workers

Pass Redis connection Configure

Closed this issue · 0 comments

I'm having difficulties connecting to SSL-enabled Redis instances because on the Configure() function the Redis client is instantiated without a way to pass Redis Connection options:

	Config = &config{
		options["process"],
		namespace,
		pollInterval,
		&redis.Pool{
			MaxIdle:     poolSize,
			IdleTimeout: 240 * time.Second,
			Dial: func() (redis.Conn, error) {
				c, err := redis.Dial("tcp", options["server"])
...

Instead, the Configure() method should accept a redis.Conn which can be setup outside go-workers. This way is would be the most flexible und de-coupled way to setup customized Redis connection.

Is anyone here still managing this Repo and accepting Pull requests?