mirror of
https://github.com/aykhans/oh-my-url.git
synced 2025-04-20 19:33:06 +00:00
🔨 Update variable names in main.go
This commit is contained in:
parent
a947b98acf
commit
fa999fea14
@ -9,7 +9,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
config := config.GetAppConfig()
|
appConfig := config.GetAppConfig()
|
||||||
dbCreate := db.GetDB()
|
dbCreate := db.GetDB()
|
||||||
dbCreate.Init()
|
dbCreate.Init()
|
||||||
handlerCreate := httpHandlers.HandlerCreate{DB: dbCreate}
|
handlerCreate := httpHandlers.HandlerCreate{DB: dbCreate}
|
||||||
@ -27,11 +27,11 @@ func main() {
|
|||||||
wg.Add(2)
|
wg.Add(2)
|
||||||
go func() {
|
go func() {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
panic(http.ListenAndServe(":"+config.LISTEN_PORT_CREATE, urlCreateMux))
|
panic(http.ListenAndServe(":"+appConfig.LISTEN_PORT_CREATE, urlCreateMux))
|
||||||
}()
|
}()
|
||||||
go func() {
|
go func() {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
panic(http.ListenAndServe(":"+config.LISTEN_PORT_FORWARD, urlReadMux))
|
panic(http.ListenAndServe(":"+appConfig.LISTEN_PORT_FORWARD, urlReadMux))
|
||||||
}()
|
}()
|
||||||
wg.Wait()
|
wg.Wait()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user