aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2022-12-17 16:01:18 +0000
committerJulio Capote <jcapote@gmail.com>2022-12-17 16:01:18 +0000
commit0f01fc1004122e18f5320f28db63830666a4c8be (patch)
treea5075856aacff848f83bdf9834bc867d109fd641
parentd3fb280a146759ca1468c1773f41599b4fabb5fa (diff)
downloadcommunique-0f01fc1004122e18f5320f28db63830666a4c8be.tar.gz
async Servers
-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()
}