From df76213e28f60a77863ed4e9024825078b552787 Mon Sep 17 00:00:00 2001 From: abicky Date: Sun, 3 Oct 2021 17:11:41 +0900 Subject: [PATCH] Fix bug that utern shows same logs repeatedly This commit fixes https://github.com/knqyf263/utern/issues/29. --- cache/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/cache.go b/cache/cache.go index 7209ba4..b5e8884 100644 --- a/cache/cache.go +++ b/cache/cache.go @@ -39,7 +39,7 @@ func (c *EventCache) Load(logGroupName string, key *string) (ok bool) { return false } cache := v.(map[string]*int64) - _, ok = cache[logGroupName] + _, ok = cache[*key] return ok }