1
0

Update module ulule/limiter/v3 to v3.8.0 (#699)

fmt

Upgrade redis client to v8 everywhere

Update module ulule/limiter/v3 to v3.8.0

Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/699
Co-Authored-By: renovate <renovatebot@kolaente.de>
Co-Committed-By: renovate <renovatebot@kolaente.de>
This commit is contained in:
renovate
2020-12-18 15:21:21 +00:00
committed by konrad
parent 0bd2632d29
commit f15a8baee3
4 changed files with 33 additions and 41 deletions

View File

@ -17,9 +17,11 @@
package red
import (
"context"
"code.vikunja.io/api/pkg/config"
"code.vikunja.io/api/pkg/log"
"github.com/go-redis/redis/v7"
"github.com/go-redis/redis/v8"
)
var r *redis.Client
@ -44,7 +46,7 @@ func InitRedis() {
DB: config.RedisDB.GetInt(),
})
err := r.Ping().Err()
err := r.Ping(context.Background()).Err()
if err != nil {
log.Fatal(err.Error())
}