Skip to content

Commit

Permalink
Fixed issues with go routines (#4754)
Browse files Browse the repository at this point in the history
Signed-off-by: Saranya-jena <[email protected]>
  • Loading branch information
Saranya-jena authored Jul 9, 2024
1 parent 7503f0d commit 0b23907
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chaoscenter/client-ext.conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
subjectAltName=DNS:*.someclient.com,IP:0.0.0.0,DNS:localhost
subjectAltName=DNS:*.someclient.com,IP:0.0.0.0,DNS:localhost,DNS:litmusportal-auth-server-service,DNS:litmusportal-server-service
7 changes: 6 additions & 1 deletion chaoscenter/graphql/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,12 @@ func main() {
TLSConfig: conf,
}
if utils.Config.ServerTlsCertPath != "" && utils.Config.ServerTlsKeyPath != "" {
go log.Fatal(server.ListenAndServeTLS("", ""))
go func() {
err := server.ListenAndServeTLS("", "")
if err != nil {
log.Fatalf("Failure to start litmus-portal graphql REST server due to %v", err)
}
}()
}
}

Expand Down

0 comments on commit 0b23907

Please sign in to comment.