File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import (
15
15
"gorm.io/gorm/logger"
16
16
)
17
17
18
- // MySQLOptions defines optsions for mysql database.
18
+ // MySQLOptions defines options for mysql database.
19
19
type MySQLOptions struct {
20
20
Host string
21
21
Username string
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import (
13
13
"github.com/redis/go-redis/v9"
14
14
)
15
15
16
- // RedisOptions defines optsions for mysql database.
16
+ // RedisOptions defines options for redis database.
17
17
type RedisOptions struct {
18
18
Addr string
19
19
Username string
@@ -28,7 +28,7 @@ type RedisOptions struct {
28
28
PoolSize int
29
29
}
30
30
31
- // NewRedis create a new gorm db instance with the given options.
31
+ // NewRedis create a new redis db instance with the given options.
32
32
func NewRedis (opts * RedisOptions ) (* redis.Client , error ) {
33
33
options := & redis.Options {
34
34
Addr : opts .Addr ,
You can’t perform that action at this time.
0 commit comments