1
0
Fork 0
forked from boyska/circolog

tiny reformatting

This commit is contained in:
boyska 2018-11-10 17:50:51 +01:00
parent 86bdeed4a2
commit 7704c5ac70

View file

@ -35,6 +35,7 @@ func main() {
hub := circolog.NewHub(*bufsize)
handler := syslog.NewChannelHandler(hub.LogMessages)
go hub.Run()
server := syslog.NewServer()
server.SetFormat(syslog.RFC5424)
@ -57,7 +58,6 @@ func main() {
fmt.Fprintln(os.Stderr, "argh", err)
os.Exit(1)
}
go hub.Run()
setupHTTP(hub)
httpServer := http.Server{Handler: nil}
@ -94,7 +94,6 @@ func main() {
fmt.Fprintln(os.Stderr, "Error closing http server:", err)
}
return
default:
}
}
}