panic on startup error
This commit is contained in:
1 parent
033ed05f34
commit
28ca6cc820
1 file changed
+4
-1
@@ -28,7 +28,10 @@ func main() {
|
|||||||
|
|
||||||
http := server.NewHttpServer(lg.With(zap.String("context", "server")), &cfg)
|
http := server.NewHttpServer(lg.With(zap.String("context", "server")), &cfg)
|
||||||
|
|
||||||
webrtc.NewWebrtcHandler(ctx, lg.With(zap.String("context", "webrtc")), cfg.Stream(), http.Hndl)
|
err = webrtc.NewWebrtcHandler(ctx, lg.With(zap.String("context", "webrtc")), cfg.Stream(), http.Hndl)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
|
||||||
http.ListenAndServe(ctx, cfg.Http.Address())
|
http.ListenAndServe(ctx, cfg.Http.Address())
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user