summaryrefslogtreecommitdiffstats
path: root/library/cpp/tvmauth/client/misc/api/threaded_updater.cpp
diff options
context:
space:
mode:
authorfeldsherov <[email protected]>2022-02-10 16:49:29 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:49:29 +0300
commit077ab504815199e62ffc54daee873cf1d6b64297 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/tvmauth/client/misc/api/threaded_updater.cpp
parente73723ec73b27276cd45b9b46b752138a51d669c (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/tvmauth/client/misc/api/threaded_updater.cpp')
-rw-r--r--library/cpp/tvmauth/client/misc/api/threaded_updater.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/tvmauth/client/misc/api/threaded_updater.cpp b/library/cpp/tvmauth/client/misc/api/threaded_updater.cpp
index 3b691042cd3..a7df49c05dd 100644
--- a/library/cpp/tvmauth/client/misc/api/threaded_updater.cpp
+++ b/library/cpp/tvmauth/client/misc/api/threaded_updater.cpp
@@ -50,7 +50,7 @@ namespace NTvmAuth::NTvmApi {
TClientStatus TThreadedUpdater::GetStatus() const {
const TClientStatus::ECode state = GetState();
- return TClientStatus(state, GetLastError(state == TClientStatus::Ok || state == TClientStatus::IncompleteTicketsSet));
+ return TClientStatus(state, GetLastError(state == TClientStatus::Ok || state == TClientStatus::IncompleteTicketsSet));
}
NRoles::TRolesPtr TThreadedUpdater::GetRoles() const {
@@ -72,10 +72,10 @@ namespace NTvmAuth::NTvmApi {
}
if (tickets->TicketsById.size() < Destinations_.size()) {
if (Settings_.IsIncompleteTicketsSetAnError) {
- return TClientStatus::Error;
- } else {
- return TClientStatus::IncompleteTicketsSet;
- }
+ return TClientStatus::Error;
+ } else {
+ return TClientStatus::IncompleteTicketsSet;
+ }
}
}
if ((Settings_.IsServiceTicketCheckingRequired() || Settings_.IsUserTicketCheckingRequired()) && ArePublicKeysInvalid(now)) {
@@ -375,9 +375,9 @@ namespace NTvmAuth::NTvmApi {
SetUpdateTimeOfServiceTickets(time);
- if (count > 0) {
- LogInfo(TStringBuilder() << "Cache was updated with " << count << " service ticket(s): " << time);
- }
+ if (count > 0) {
+ LogInfo(TStringBuilder() << "Cache was updated with " << count << " service ticket(s): " << time);
+ }
}
void TThreadedUpdater::UpdatePublicKeysCache(const TString& publicKeys, TInstant time) {