Skip to content

Commit

Permalink
perf: reorder struct fields for effecient alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
kareemmahlees committed Jun 27, 2024
1 parent 816a1de commit a901038
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ type PgConfig struct {
type PgConnectionParams struct {
DBUsername string
DBHost string
DBPort int
DBName string
DBSslMode string
DBPassword string
DBPort int
}

func NewPGConfig(connUrl *string, pgConnParams *PgConnectionParams) *PgConfig {
Expand Down Expand Up @@ -64,9 +64,9 @@ type MySQLConfig struct {
type MySQLConnectionParams struct {
DBUsername string
DBHost string
DBPort int
DBName string
DBPassword string
DBPort int
}

func NewMySQLConfig(connUrl *string, pgConnParams *MySQLConnectionParams) *MySQLConfig {
Expand Down

0 comments on commit a901038

Please sign in to comment.