fix(server): make CacheManager constructor private to satisfy the singleton pattern by Pengzna · Pull Request #2432 · apache/hugegraph

@Pengzna

For the sake of regulation and safety, we should privatize the constructor of cacheManager to satisfy the singleton pattern

@Pengzna

@Pengzna

@Pengzna

VGalaxies

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch~

@dosubot dosubot bot added the lgtm

This PR has been approved by a maintainer

label

Jan 29, 2024

@codecov

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1d4532c) 66.23% compared to head (3b2f5a9) 66.20%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2432      +/-   ##
============================================
- Coverage     66.23%   66.20%   -0.04%     
  Complexity      828      828              
============================================
  Files           511      511              
  Lines         42597    42597              
  Branches       5942     5942              
============================================
- Hits          28215    28202      -13     
- Misses        11566    11584      +18     
+ Partials       2816     2811       -5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

imbajin

This comment was marked as off-topic.

imbajin

@imbajin imbajin changed the title fix: privatize the constructor of cacheManager to satisfy the singleton pattern fix(server): make CacheManager constructor private to satisfy the singleton pattern

Jan 30, 2024

VGalaxies pushed a commit that referenced this pull request

Feb 3, 2024

VGalaxies pushed a commit that referenced this pull request

Feb 3, 2024

msgui pushed a commit to msgui/incubator-hugegraph that referenced this pull request

Feb 7, 2024