zksync-era
zksync-era copied to clipboard
feat(storage): Make the storage caches task cancellation aware
What ❔
Makes the support task for postgres storage caches aware of cancellation token. Additionally, replaces the closure with a named type.
Why ❔
Currently, it's being canceled implicitly (by dropping the command sender), which is not idiomatic in terms of the new framework.
Checklist
- [ ] PR title corresponds to the body of PR (we generate changelog entries from PRs).
- [ ] Tests for the changes have been added / updated.
- [ ] Documentation comments have been added / updated.
- [ ] Code has been formatted via
zk fmtandzk lint. - [ ] Spellcheck has been run via
zk spellcheck. - [ ] Linkcheck has been run via
zk linkcheck.