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:
@ -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())
|
||||
}
|
||||
|
Reference in New Issue
Block a user