Skip to content

Commit

Permalink
Extra check for frontend servers without connectors
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Hahn committed Jul 16, 2018
1 parent 2b1476d commit 028836a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,10 @@ func Start() {
logger.Log.Fatal("acceptors are not allowed on backend servers")
}

if app.server.Frontend && len(app.acceptors) == 0 {
logger.Log.Fatal("frontend servers should have at least one configured acceptor")
}

if app.serverMode == Cluster {
if app.serviceDiscovery == nil {
logger.Log.Warn("creating default service discovery because cluster mode is enabled, " +
Expand Down

0 comments on commit 028836a

Please sign in to comment.