Skip to content

Commit

Permalink
Remove use of ThreadSafeCache
Browse files Browse the repository at this point in the history
  • Loading branch information
jcantrill committed Jun 24, 2022
1 parent 8e03fe6 commit a291b55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/fluent/plugin/filter_kubernetes_metadata.rb
Expand Up @@ -204,13 +204,13 @@ def configure(conf)
end

# Caches pod/namespace UID tuples for a given container UID.
@id_cache = LruRedux::TTL::ThreadSafeCache.new(@cache_size, @cache_ttl)
@id_cache = LruRedux::TTL::Cache.new(@cache_size, @cache_ttl)

# Use the container UID as the key to fetch a hash containing pod metadata
@cache = LruRedux::TTL::ThreadSafeCache.new(@cache_size, @cache_ttl)
@cache = LruRedux::TTL::Cache.new(@cache_size, @cache_ttl)

# Use the namespace UID as the key to fetch a hash containing namespace metadata
@namespace_cache = LruRedux::TTL::ThreadSafeCache.new(@cache_size, @cache_ttl)
@namespace_cache = LruRedux::TTL::Cache.new(@cache_size, @cache_ttl)

@tag_to_kubernetes_name_regexp_compiled = Regexp.compile(@tag_to_kubernetes_name_regexp)

Expand Down

0 comments on commit a291b55

Please sign in to comment.