From 1c1714b2c278810c4bfef8e11e9abfc54e3ceb00 Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Tue, 17 Jan 2023 12:40:36 -0500 Subject: [PATCH] Clarify a counter name --- .../textsecuregcm/controllers/AccountController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/AccountController.java b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/AccountController.java index 0af4b9c75..9b18ae18d 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/AccountController.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/AccountController.java @@ -130,7 +130,7 @@ public class AccountController { private static final String CAPTCHA_ATTEMPT_COUNTER_NAME = name(AccountController.class, "captcha"); private static final String CHALLENGE_ISSUED_COUNTER_NAME = name(AccountController.class, "challengeIssued"); - private static final DistributionSummary REREGISTRATION_IDLE_DAYS_DISTRIBUTION_NAME = DistributionSummary + private static final DistributionSummary REREGISTRATION_IDLE_DAYS_DISTRIBUTION = DistributionSummary .builder(name(AccountController.class, "reregistrationIdleDays")) .publishPercentiles(0.75, 0.95, 0.99, 0.999) .distributionStatisticExpiry(Duration.ofHours(2)) @@ -419,7 +419,7 @@ public class AccountController { existingAccount.ifPresent(account -> { Instant accountLastSeen = Instant.ofEpochMilli(account.getLastSeen()); Duration timeSinceLastSeen = Duration.between(accountLastSeen, Instant.now()); - REREGISTRATION_IDLE_DAYS_DISTRIBUTION_NAME.record(timeSinceLastSeen.toDays()); + REREGISTRATION_IDLE_DAYS_DISTRIBUTION.record(timeSinceLastSeen.toDays()); }); if (existingAccount.isPresent()) {