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 VGalaxies committed Feb 3, 2024
1 parent d10a68c commit 01760e5
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 01760e5

Please sign in to comment.