Tracked validator cache: Make sure no to loose the reference. (#15077)

This commit is contained in:
Manu NALEPA
2025-03-20 11:00:40 +01:00
committed by GitHub
parent 2aa52fb56a
commit c73473b59d
2 changed files with 5 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ type (
}
TrackedValidatorsCache struct {
trackedValidators cache.Cache
trackedValidators *cache.Cache
}
)
@@ -50,7 +50,7 @@ var (
// NewTrackedValidatorsCache creates a new cache for tracking validators.
func NewTrackedValidatorsCache() *TrackedValidatorsCache {
return &TrackedValidatorsCache{
trackedValidators: *cache.New(defaultExpiration, cleanupInterval),
trackedValidators: cache.New(defaultExpiration, cleanupInterval),
}
}