Skip to content

Comments

fix(server): make CacheManager constructor private to satisfy the singleton pattern#2432

Merged
VGalaxies merged 2 commits intoapache:masterfrom
Pengzna:master
Feb 1, 2024
Merged

fix(server): make CacheManager constructor private to satisfy the singleton pattern#2432
VGalaxies merged 2 commits intoapache:masterfrom
Pengzna:master

Conversation

@Pengzna
Copy link
Contributor

@Pengzna Pengzna commented Jan 29, 2024

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

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. feature New feature labels Jan 29, 2024
@Pengzna
Copy link
Contributor Author

Pengzna commented Jan 29, 2024

PTAL~ @imbajin @VGalaxies

Copy link
Contributor

@VGalaxies VGalaxies left a comment

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
Copy link

codecov bot commented Jan 29, 2024

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 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 VGalaxies merged commit 3f7dc2a into apache:master Feb 1, 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants