Skip to content

Commit

Permalink
bug: made ServerAddress inline
Browse files Browse the repository at this point in the history
  • Loading branch information
Wil Simpson committed Apr 5, 2024
1 parent cde0182 commit cdd845e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/config/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import "fmt"

// DBConfig Information on how to connect to the database
type DBConfig struct {
ServerAddress
Name string `yaml:"name"`
Username string `yaml:"username"`
Password string `yaml:"password"`
ServerAddress `yaml:",inline" mapstructure:",squash"`
Name string `yaml:"name"`
Username string `yaml:"username"`
Password string `yaml:"password"`
}

// DBPoolConfig Defines the master and slave connections to a replicated database. Slaves may be empty.
Expand Down

0 comments on commit cdd845e

Please sign in to comment.