From 8156756e5471f4581fcd8ee4899b2abac4c6db1d Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Wed, 13 Jul 2022 15:44:50 -0400 Subject: [PATCH] keep locks around longer --- internal/domain/account.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/domain/account.go b/internal/domain/account.go index 5892fe3..a38154a 100644 --- a/internal/domain/account.go +++ b/internal/domain/account.go @@ -9,10 +9,10 @@ import ( ) const ( - NotificationCheckInterval = 5 * time.Second // time between notification checks - NotificationCheckTimeout = 60 * time.Second // time before we give up an account check lock - StuckNotificationCheckInterval = 2 * time.Minute // time between stuck notification checks - StaleTokenThreshold = 2 * time.Hour // time an oauth token has to be expired for to be stale + NotificationCheckInterval = 5 * time.Second // time between notification checks + NotificationCheckTimeout = 5 * time.Minute // time before we give up an account check lock + StuckNotificationCheckInterval = 2 * time.Minute // time between stuck notification checks + StaleTokenThreshold = 2 * time.Hour // time an oauth token has to be expired for to be stale ) // Account represents an account we need to periodically check in the notifications worker.