refactor: unified naming for module startup functions.

pull/2100/head
Gordon 2 years ago
parent 3cb427a7a8
commit 9976c00f8e

@ -72,7 +72,7 @@ func NewRedis(ctx context.Context, redisConf *config.Redis) (redis.UniversalClie
}
var err error
ctx, cancel := context.WithTimeout(context.Background(), time.Second*10)
ctx, cancel := context.WithTimeout(ctx, time.Second*10)
defer cancel()
err = rdb.Ping(ctx).Err()
if err != nil {

Loading…
Cancel
Save