Skip to content

Commit

Permalink
add comment on health check
Browse files Browse the repository at this point in the history
  • Loading branch information
biegehydra committed Oct 22, 2023
1 parent 2b2b381 commit fcdcc77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions LibPostalApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
app.MapHealthChecks("/health");
app.Use(async (context, next) =>
{
// Could fail a health check for taking to long if it has to initialize libpostal
if (LibPostalService.Initialized && context.Request.Path.StartsWithSegments("/health"))
{
var libPostal = app.Services.GetRequiredService<ILibPostalService>();
Expand Down

0 comments on commit fcdcc77

Please sign in to comment.