don't need this comment

anoa/temp_working_cache_config
Amber H. Brown 2020-01-22 02:57:15 +11:00
parent ac020dee7a
commit 18c1dbfbac
1 changed files with 0 additions and 3 deletions

View File

@ -118,9 +118,6 @@ def register_cache(
resize_callback = getattr(cache, "set_cache_factor")
add_resizable_cache(cache_name, resize_callback)
# Check if the metric is already registered. Unregister it, if so.
# This usually happens during tests, as at runtime these caches are
# effectively singletons.
metric = CacheMetric(cache, cache_type, cache_name, collect_callback)
metric_name = "cache_%s_%s" % (cache_type, cache_name)
caches_by_name[cache_name] = cache