mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-04-17 22:02:13 +00:00
Put web server in a goroutine
This commit is contained in:
parent
121592bee5
commit
ad75d2c774
9
main.go
9
main.go
@ -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 {}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user