From 5db3c7ea0bbecd05ebc5259273c19ca71317485f Mon Sep 17 00:00:00 2001 From: Ahrav Dutta Date: Mon, 20 Mar 2023 14:43:31 -0700 Subject: [PATCH] rebase. --- pkg/sources/gcs/gcs.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/sources/gcs/gcs.go b/pkg/sources/gcs/gcs.go index e68ded8a..5c0866b6 100644 --- a/pkg/sources/gcs/gcs.go +++ b/pkg/sources/gcs/gcs.go @@ -85,12 +85,11 @@ func newCacheManager(threshold int, cache cache.Cache, p *sources.Progress) *cac } func (c *cacheManager) exists(key string) bool { - _, ok := c.cache.Get(key) - return ok + return c.cache.Exists(key) } func (c *cacheManager) set(key string) { - c.cache.Set(key, true) + c.cache.Set(key, key) } func (c *cacheManager) shouldPersist() (bool, string) {