chore: replace redis.NewRedis with redis.New (#1103)

This commit is contained in:
Kevin Wan
2021-09-29 23:01:10 +08:00
committed by GitHub
parent cd21c9fa74
commit e43357164c
7 changed files with 12 additions and 12 deletions

View File

@@ -120,7 +120,7 @@ func TestStatCacheFails(t *testing.T) {
log.SetOutput(ioutil.Discard)
defer log.SetOutput(os.Stdout)
r := redis.NewRedis("localhost:59999", redis.NodeType)
r := redis.New("localhost:59999")
cach := cache.NewNode(r, sharedCalls, stats, mgo.ErrNotFound)
c := newCollection(dummyConn{}, cach)