Skip to content

Commit

Permalink
Merge pull request #30 from Comcast/feature/webhookRegAfterServerStar…
Browse files Browse the repository at this point in the history
…tFix

allow server to start and before attempting to register with sns
  • Loading branch information
njharter authored Jul 26, 2017
2 parents a6ef20e + 71f5a85 commit 6810b0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/caduceus/caduceus.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ func caduceus(arguments []string) int {
}

webhookFactory.Initialize(mux, selfURL, webhookHandler, logger)
webhookFactory.PrepareAndStart()

caduceusHealth := &CaduceusHealth{}
var runnable concurrent.Runnable
Expand All @@ -199,6 +198,8 @@ func caduceus(arguments []string) int {
return 1
}

webhookFactory.PrepareAndStart()

logger.Info("Caduceus is up and running!")

// Attempt to obtain the current listener list from current system without having to wait for listener reregistration.
Expand Down

0 comments on commit 6810b0a

Please sign in to comment.