1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2024-12-22 10:22:19 +00:00

Put web server in a goroutine

This commit is contained in:
Alexandre Iooss 2020-09-21 21:05:45 +02:00
parent 121592bee5
commit ad75d2c774

View File

@ -14,6 +14,11 @@ func main() {
log.Fatal(err)
}
// Start web server
web.ServeHTTP(cfg)
// Start web server routine
go func() {
web.ServeHTTP(cfg)
}()
// Wait for routines
select {}
}