Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
chore: start go routine after saving cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
im-adithya committed Jul 3, 2024
1 parent 93e26d3 commit 336975a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions http/http_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,6 @@ func (httpSvc *HttpService) startHandler(c echo.Context) error {
})
}

go func() {
err := httpSvc.api.Start(&startRequest)
if err != nil {
logger.Logger.WithError(err).Error("Failed to start node")
}
}()

err := httpSvc.saveSessionCookie(c)

if err != nil {
Expand All @@ -201,6 +194,13 @@ func (httpSvc *HttpService) startHandler(c echo.Context) error {
})
}

go func() {
err := httpSvc.api.Start(&startRequest)
if err != nil {
logger.Logger.WithError(err).Error("Failed to start node")
}
}()

return c.NoContent(http.StatusNoContent)
}

Expand Down

0 comments on commit 336975a

Please sign in to comment.