Skip to content

Commit

Permalink
feat: allow empty db password (polarismesh#1237)
Browse files Browse the repository at this point in the history
  • Loading branch information
WTIFS committed Sep 7, 2023
1 parent f14607d commit c620da9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions store/mysql/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,11 @@ func parseStoreConfig(opts interface{}) (*dbConfig, error) {
if !ok {
return nil, fmt.Errorf("config Plugin %s:%s type must be string", STORENAME, key)
}

needCheckFields[key] = fmt.Sprintf("%v", val)
if val != nil {
needCheckFields[key] = fmt.Sprintf("%v", val)
} else {
log.Warnf("[Store][database] config field is empty: %s", key)
}
}

c := &dbConfig{
Expand Down

0 comments on commit c620da9

Please sign in to comment.