From fa999fea14038b34d224cd54ca34b1b52e677aab Mon Sep 17 00:00:00 2001 From: Aykhan Shahsuvarov Date: Sun, 10 Mar 2024 20:22:43 +0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Update=20variable=20names=20in?= =?UTF-8?q?=20main.go?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/main.go b/app/main.go index b50f838..9e64b33 100644 --- a/app/main.go +++ b/app/main.go @@ -9,7 +9,7 @@ import ( ) func main() { - config := config.GetAppConfig() + appConfig := config.GetAppConfig() dbCreate := db.GetDB() dbCreate.Init() handlerCreate := httpHandlers.HandlerCreate{DB: dbCreate} @@ -27,11 +27,11 @@ func main() { wg.Add(2) go func() { defer wg.Done() - panic(http.ListenAndServe(":"+config.LISTEN_PORT_CREATE, urlCreateMux)) + panic(http.ListenAndServe(":"+appConfig.LISTEN_PORT_CREATE, urlCreateMux)) }() go func() { defer wg.Done() - panic(http.ListenAndServe(":"+config.LISTEN_PORT_FORWARD, urlReadMux)) + panic(http.ListenAndServe(":"+appConfig.LISTEN_PORT_FORWARD, urlReadMux)) }() wg.Wait() }