forked from hugegraph/hugegraph-sync
fix(server): make CacheManager constructor private to satisfy the singleton pattern (#2432)
This commit is contained in:
parent
1d4532cd62
commit
3f7dc2a8b2
|
|
@ -56,7 +56,7 @@ public class CacheManager {
|
|||
return cache.enableMetrics(enabled);
|
||||
}
|
||||
|
||||
public CacheManager() {
|
||||
private CacheManager() {
|
||||
this.caches = new ConcurrentHashMap<>();
|
||||
this.timer = new Timer("cache-expirer", true);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue