From 3dc79ac60dda5c51e23035480c8f4b4e6f03ef28 Mon Sep 17 00:00:00 2001 From: Junwei Zhao Date: Mon, 31 Aug 2020 17:30:54 +1000 Subject: [PATCH] Expire badge cache in 10 seconds --- handlers/badges.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/badges.go b/handlers/badges.go index e5ec635..6983468 100644 --- a/handlers/badges.go +++ b/handlers/badges.go @@ -50,7 +50,7 @@ const ( textMarginY = 14 badgeHeight = 20 textStyle = "text-anchor:start;font-size:12px;fill:white;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;" - badgeExpireSeconds = 60 + badgeExpireSeconds = 10 labelWidthPortion = 0.65 metricRequestTimeout = 10 * time.Second ErrorMessageInternalError = "Oops, there's something wrong, please try it again later."