TelemetryPublisherFirestore.cs: Reformat
This commit is contained in:
parent
b3dddaacd2
commit
6c68391083
1 changed files with 2 additions and 1 deletions
|
@ -100,7 +100,7 @@ namespace NucuCar.Telemetry.Publishers
|
||||||
Logger?.LogDebug($"{response?.Content}");
|
Logger?.LogDebug($"{response?.Content}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task CheckAndSetupAuthorization()
|
private async Task CheckAndSetupAuthorization()
|
||||||
{
|
{
|
||||||
// If there are no credentials or partial credentials supplies there must be no authorization.
|
// If there are no credentials or partial credentials supplies there must be no authorization.
|
||||||
|
@ -108,6 +108,7 @@ namespace NucuCar.Telemetry.Publishers
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if the token is about to expire in the next 5 minutes.
|
// Check if the token is about to expire in the next 5 minutes.
|
||||||
if (DateTime.UtcNow.AddMinutes(5) < _authorizationExpiryTime)
|
if (DateTime.UtcNow.AddMinutes(5) < _authorizationExpiryTime)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue