zksync-era icon indicating copy to clipboard operation
zksync-era copied to clipboard

feat(storage): Make the storage caches task cancellation aware

Open popzxc opened this issue 1 year ago • 0 comments

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 fmt and zk lint.
  • [ ] Spellcheck has been run via zk spellcheck.
  • [ ] Linkcheck has been run via zk linkcheck.

popzxc avatar Mar 14 '24 12:03 popzxc