Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #5883: refactor: use atomic to avoid blocking chainlocks cs on …
…each call to cleanup 75d81fd refactor: use atomic to avoid blocking chainlocks cs on each call to cleanup (pasta) Pull request description: ## Issue being fixed or feature implemented Avoid needing to lock CS on each call to cleanup. Cleanup only gets called once every 5 seconds it seems; but maybe that'll change in the future. ## What was done? Make `lastCleanupTime` atomic instead of CS guarded ## How Has This Been Tested? Building ## Breaking Changes None ## Checklist: _Go over all the following points, and put an `x` in all the boxes that apply._ - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_ Top commit has no ACKs. Tree-SHA512: 587dbfbecce430c25b4d572b2e158fcda86aced3db976c16166c0cabcf960f46d300739bbf54644def30769347cc88ac14c58d71dd78d848f7d8af562cd12bc6
- Loading branch information