Fixed issues with go routines (#4754)

Signed-off-by: Saranya-jena <saranya.jena@harness.io>
This commit is contained in:
Saranya Jena 2024-07-09 17:52:44 +05:30 committed by GitHub
parent 7503f0d628
commit 0b239070fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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)
}
}()
}
}