Skip to content

Commit

Permalink
api: fix graceful stop
Browse files Browse the repository at this point in the history
  • Loading branch information
jzelinskie committed Feb 24, 2016
1 parent 9a8d4aa commit 6ac9b5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ func Run(config *config.APIConfig, ctx *context.RouteContext, st *utils.Stopper)
}

func RunHealth(config *config.APIConfig, ctx *context.RouteContext, st *utils.Stopper) {
defer st.End()

// Do not run the API service if there is no config.
if config == nil {
log.Infof("health API service is disabled.")
Expand Down

0 comments on commit 6ac9b5e

Please sign in to comment.