From 8788720e60c421ae377907cb97ddcddde8e6d11b Mon Sep 17 00:00:00 2001 From: Jonathan Cobb Date: Fri, 17 Jan 2020 19:16:44 -0500 Subject: [PATCH] lower syncRequests cache threshold --- .../main/java/bubble/service/notify/NotificationService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bubble-server/src/main/java/bubble/service/notify/NotificationService.java b/bubble-server/src/main/java/bubble/service/notify/NotificationService.java index f89ff8f8..71327b1e 100644 --- a/bubble-server/src/main/java/bubble/service/notify/NotificationService.java +++ b/bubble-server/src/main/java/bubble/service/notify/NotificationService.java @@ -139,8 +139,8 @@ public class NotificationService { return null; } - private final Map syncRequests = new ExpirationMap<>(SECONDS.toMillis(160)); - private final Map syncRequestCache = new ExpirationMap<>(SECONDS.toMillis(150)); + private final Map syncRequests = new ExpirationMap<>(SECONDS.toMillis(20)); + private final Map syncRequestCache = new ExpirationMap<>(SECONDS.toMillis(15)); public T notifySync(BubbleNode delegate, NotificationType type, SynchronousNotification notification) { final String cacheKey = notification.getCacheKey(delegate, type);