aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go4
1 files changed, 3 insertions, 1 deletions
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()
}