Make it an exception again

This commit is contained in:
Timothy Baldridge 2022-02-09 11:38:11 -07:00
parent 76ba2819a1
commit 6150764da8

View File

@ -62,7 +62,7 @@ public class ApiKeyAuthenticationHandler : AuthenticationHandler<ApiKeyAuthentic
{
if (await _tarLog.Contains(metricsKey))
{
await _metricsStore.Ingest(new Metric()
await _metricsStore.Ingest(new Metric
{
Subject = metricsKey,
Action = "tarlog",
@ -70,7 +70,7 @@ public class ApiKeyAuthenticationHandler : AuthenticationHandler<ApiKeyAuthentic
UserAgent = Request.Headers.UserAgent
});
await Task.Delay(TimeSpan.FromSeconds(60));
return AuthenticateResult.Fail("Error, lipsum timeout of the cross distant cloud.");
throw new Exception("Error, lipsum timeout of the cross distant cloud.");
}
}