Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Jan 22, 2024
1 parent 8e4ef1a commit 80d90cf
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions sdk/metric/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,3 @@ func (c *cacheWithErr[K, V]) Lookup(key K, f func() (V, error)) (V, error) {
})
return combined.val, combined.err
}

// HasKey returns true if Lookup has previously been called with that key
//
// HasKey is safe to call concurrently.
func (c *cacheWithErr[K, V]) HasKey(key K) bool {
return c.cache.HasKey(key)
}

0 comments on commit 80d90cf

Please sign in to comment.