diff --git a/src/cartservice/HealthImpl.cs b/src/cartservice/HealthImpl.cs index f535b39..66e4a10 100644 --- a/src/cartservice/HealthImpl.cs +++ b/src/cartservice/HealthImpl.cs @@ -1,6 +1,5 @@ using System; using System.Threading.Tasks; -using static System.Diagnostics.Stopwatch; using cartservice.interfaces; using Grpc.Core; using Grpc.Health.V1; @@ -15,13 +14,9 @@ namespace cartservice { } public override Task Check(HealthCheckRequest request, ServerCallContext context){ - var watch = StartNew(); var result = Task.FromResult(new HealthCheckResponse { Status = dependency.Ping() ? HealthCheckResponse.Types.ServingStatus.Serving : HealthCheckResponse.Types.ServingStatus.NotServing }); - watch.Stop(); - var elapsedMs = watch.ElapsedMilliseconds; - Console.WriteLine ("✅ Health Check took " + elapsedMs + "ms"); return result; } }