Skip to content
Snippets Groups Projects
Commit 3fc8da4c authored by ensiouel's avatar ensiouel
Browse files

Revert "refactor(WithMetrics): добавлена проверка на nil для оборачиваемого кэша"

This reverts commit f3feb9ea.
parent e8e363c0
No related branches found
No related tags found
No related merge requests found
...@@ -26,9 +26,6 @@ type metricsCache struct { ...@@ -26,9 +26,6 @@ type metricsCache struct {
// //
// Метрики записываются в prometheus.DefaultRegisterer // Метрики записываются в prometheus.DefaultRegisterer
func WithMetrics(cache Cache, cacheID string) Cache { func WithMetrics(cache Cache, cacheID string) Cache {
if cache == nil {
panic("cannot wrap metrics in cache, cache is nil")
}
return &metricsCache{ return &metricsCache{
cacheID: cacheID, cacheID: cacheID,
cache: cache, cache: cache,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment