Skip to content

Commit

Permalink
fix: typo in manager database (#3191)
Browse files Browse the repository at this point in the history
Signed-off-by: BruceAko <chongzhi@hust.edu.cn>
  • Loading branch information
BruceAko authored Apr 16, 2024
1 parent 651946f commit f76aaf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manager/database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func New(cfg *config.Config) (*Database, error) {
)
switch cfg.Database.Type {
case config.DatabaseTypeMysql, config.DatabaseTypeMariaDB:
db, err = newMyqsl(cfg)
db, err = newMysql(cfg)
if err != nil {
logger.Errorf("mysql: %s", err.Error())
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion manager/database/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const (
defaultMysqlWriteTimeout = 2 * time.Minute
)

func newMyqsl(cfg *config.Config) (*gorm.DB, error) {
func newMysql(cfg *config.Config) (*gorm.DB, error) {
mysqlCfg := &cfg.Database.Mysql

// Format dsn string.
Expand Down

0 comments on commit f76aaf1

Please sign in to comment.