mirror of
https://github.com/aykhans/oh-my-url.git
synced 2025-04-17 02:23:13 +00:00
🔨 Update variable names in main.go
This commit is contained in:
parent
a947b98acf
commit
fa999fea14
@ -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()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user