From d331c83f7101611bc1f023e30c4d66790b0f4d8d Mon Sep 17 00:00:00 2001 From: Dylan Ratcliffe Date: Fri, 26 Jul 2024 08:42:23 +0000 Subject: [PATCH] Use defaults when caching --- sources/get_list_source.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/get_list_source.go b/sources/get_list_source.go index 3930ad43..74acf261 100644 --- a/sources/get_list_source.go +++ b/sources/get_list_source.go @@ -167,7 +167,7 @@ func (s *GetListSource[AWSItem, ClientStruct, Options]) Get(ctx context.Context, } } - s.cache.StoreItem(item, s.CacheDuration, ck) + s.cache.StoreItem(item, s.cacheDuration(), ck) return item, nil }