From 0f01fc1004122e18f5320f28db63830666a4c8be Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Sat, 17 Dec 2022 11:01:18 -0500 Subject: async Servers --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index dcf6034..195e02d 100644 --- a/main.go +++ b/main.go @@ -35,7 +35,8 @@ func main() { // CGI Servers servers := cgi.NewServers() - servers.Start(cfg) + // TODO Should probably be in a global waitgroup + go servers.Start(cfg) // HTTP Server router := gin.Default() @@ -55,5 +56,6 @@ func main() { c.JSON(http.StatusOK, nil) }) + // TODO Should probably be in a global waitgroup router.Run() } -- cgit v1.2.3