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) {