Skip to content

Commit

Permalink
Errors should be checked when orderer grpc server is serving requests
Browse files Browse the repository at this point in the history
Signed-off-by: wuyingjun <wuyingjun@cmss.chinamobile.com>
  • Loading branch information
wuyingjun-lucky authored and sykesm committed May 20, 2020
1 parent c571271 commit 2e6860e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion orderer/common/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,9 @@ func Main() {
}
ab.RegisterAtomicBroadcastServer(grpcServer.Server(), server)
logger.Info("Beginning to serve requests")
grpcServer.Start()
if err := grpcServer.Start(); err != nil {
logger.Fatalf("Atomic Broadcast gRPC server has terminated while serving requests due to: %v", err)
}
}

func reuseListener(conf *localconfig.TopLevel, typ string) bool {
Expand Down

0 comments on commit 2e6860e

Please sign in to comment.