-
Notifications
You must be signed in to change notification settings - Fork 409
refactor: use sync map instead for map string #549
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
refactor: use sync map instead for map string #549
Conversation
|
@nerdeveloper - can you add the |
|
Yes |
Done |
|
@nerdeveloper And please fix your DCO verification ? |
| TimestampTolerance time.Duration | ||
| ExternalCacheStore cache.Store | ||
| InternalCacheStore map[string]*cacheEntry | ||
| InternalCacheStore sync.Map |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we wrap the sync.Map inside a specialized structure , for example type memoryCacheStore struct { sync.Map } maybe , and wrap the Load and Store func ? Doing a type assertion every where seems ugly though .
helm#540) Bumps [github.com/chartmuseum/storage](https://github.com/chartmuseum/storage) from 0.12.2 to 0.12.3. - [Release notes](https://github.com/chartmuseum/storage/releases) - [Commits](chartmuseum/storage@v0.12.2...v0.12.3) --- updated-dependencies: - dependency-name: github.com/chartmuseum/storage dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: nerdeveloper <odirionye@gmail.com>
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.12.0 to 1.12.1. - [Release notes](https://github.com/prometheus/client_golang/releases) - [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md) - [Commits](prometheus/client_golang@v1.12.0...v1.12.1) --- updated-dependencies: - dependency-name: github.com/prometheus/client_golang dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: nerdeveloper <odirionye@gmail.com>
* fix: avoid panic with dynamic depth configured Signed-off-by: Casey Buto <cbuto@d2iq.com> * test: Add test for dynamic depth route Signed-off-by: Casey Buto <cbuto@d2iq.com> Signed-off-by: nerdeveloper <odirionye@gmail.com>
…d up builds (helm#544) Signed-off-by: Casey Buto <cbuto@d2iq.com> Signed-off-by: nerdeveloper <odirionye@gmail.com>
Signed-off-by: nerdeveloper <odirionye@gmail.com>
Signed-off-by: nerdeveloper <odirionye@gmail.com>
Co-authored-by: Casey Buto <cbuto22@gmail.com> Signed-off-by: nerdeveloper <odirionye@gmail.com>
48a7463 to
dc067d9
Compare
|
@nerdeveloper is there anything we can help with here? |
|
Yes, @cbuto, I tried to refactor to sync map, but the race condition still exists. i am having a hard time debugging this |
|
I am going to close this PR, as @cbuto has picked it and finished it |
Signed-off-by: nerdeveloper odirionye@gmail.com