apache / incubator-hugegraph

A graph database that supports more than 100+ billion data, high performance and scalability (Include OLTP Engine & REST-API & Backends)
https://hugegraph.apache.org
Apache License 2.0
2.58k stars 512 forks source link

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

Closed Pengzna closed 5 months ago

Pengzna commented 5 months ago

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

Pengzna commented 5 months ago

PTAL~ @imbajin @VGalaxies

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

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

Additional details and impacted files ```diff @@ 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 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.