Skip to content

Commit

Permalink
fix(server): make CacheManager constructor private to satisfy the sin…
Browse files Browse the repository at this point in the history
…gleton pattern (#2432)
  • Loading branch information
Pengzna authored and msgui committed Feb 7, 2024
1 parent 1d4532c commit 49aa0a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static boolean cacheEnableMetrics(String name, boolean enabled) {
return cache.enableMetrics(enabled);
}

public CacheManager() {
private CacheManager() {
this.caches = new ConcurrentHashMap<>();
this.timer = new Timer("cache-expirer", true);

Expand Down

0 comments on commit 49aa0a2

Please sign in to comment.