Skip to content

Commit 21af3a9

Browse files
author
Nick Randall
committed
fixing in memory cache for old golang
1 parent 7d62cc4 commit 21af3a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inMemoryCache.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ func (c *InMemoryCache) Get(_ context.Context, key interface{}) (Thunk, bool) {
4747
}
4848

4949
// Delete deletes item at `key` from cache
50-
func (c *InMemoryCache) Delete(_ context.Context, key interface{}) bool {
51-
if _, found := c.Get(key); found {
50+
func (c *InMemoryCache) Delete(ctx context.Context, key interface{}) bool {
51+
if _, found := c.Get(ctx, key); found {
5252
c.mu.Lock()
5353
defer c.mu.Unlock()
5454
delete(c.items, key)

0 commit comments

Comments
 (0)