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:
parent
5c57fc6112
commit
7101b6b4fe
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue