Skip to content

Commit d3717ba

Browse files
committed
docs: fix db annotation
1 parent 9cb0a43 commit d3717ba

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/db/mysql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"gorm.io/gorm/logger"
1616
)
1717

18-
// MySQLOptions defines optsions for mysql database.
18+
// MySQLOptions defines options for mysql database.
1919
type MySQLOptions struct {
2020
Host string
2121
Username string

pkg/db/redis.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/redis/go-redis/v9"
1414
)
1515

16-
// RedisOptions defines optsions for mysql database.
16+
// RedisOptions defines options for redis database.
1717
type RedisOptions struct {
1818
Addr string
1919
Username string
@@ -28,7 +28,7 @@ type RedisOptions struct {
2828
PoolSize int
2929
}
3030

31-
// NewRedis create a new gorm db instance with the given options.
31+
// NewRedis create a new redis db instance with the given options.
3232
func NewRedis(opts *RedisOptions) (*redis.Client, error) {
3333
options := &redis.Options{
3434
Addr: opts.Addr,

0 commit comments

Comments
 (0)