From a901038eaf2d96a33715babd7b0b87e7ec6e48be Mon Sep 17 00:00:00 2001 From: Kareem Ebrahim Date: Fri, 28 Jun 2024 00:37:45 +0300 Subject: [PATCH] perf: reorder struct fields for effecient alignment --- utils/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/config.go b/utils/config.go index 5937aae..f656513 100644 --- a/utils/config.go +++ b/utils/config.go @@ -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 { @@ -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 {