Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Feb 1, 2024

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
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
18 of 21 checks passed
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