Changing the order of redis and cart service starting

This should help monitoring probe for cart service to succeed at first run
This commit is contained in:
Simon Zeltser 2018-07-09 21:02:27 -07:00
parent 5c57fc6112
commit 7101b6b4fe

View file

@ -37,6 +37,8 @@ namespace cartservice
{
try
{
await cartStore.InitializeAsync();
Console.WriteLine($"Trying to start a grpc server at {host}:{port}");
Server server = new Server
{
@ -47,7 +49,6 @@ namespace cartservice
Console.WriteLine($"Cart server is listening at {host}:{port}");
server.Start();
await cartStore.InitializeAsync();
Console.WriteLine("Initialization completed");
// Keep the server up and running