redis: use pubsub instead of keyspace events (#1450)

This commit is contained in:
Caleb Doxsey 2020-09-23 14:40:05 -06:00 committed by GitHub
parent 852c96f22f
commit f4c61a0cdc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 39 deletions

View file

@ -73,7 +73,7 @@ func runWithRedisDockerImage(t *testing.T, runOpts *dockertest.RunOptions, withT
address := fmt.Sprintf(scheme+"://localhost:%s/0", resource.GetPort("6379/tcp"))
if err := pool.Retry(func() error {
var err error
db, err = New(address, "record_type", int64(time.Hour.Seconds()), WithTLSConfig(tlsConfig(address, t)))
db, err = New(address, "record_type", WithTLSConfig(tlsConfig(address, t)))
if err != nil {
return err
}