]> git.proxmox.com Git - proxmox-backup.git/commit
async_lru_cache: fix handling of errors in fetch
authorStefan Reiter <s.reiter@proxmox.com>
Thu, 17 Jun 2021 09:02:32 +0000 (11:02 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 28 Jun 2021 11:48:26 +0000 (13:48 +0200)
commitc48c38ab8c6f0a1a747f6cc2eda20fdabad81df9
tree3e1834f578ce547ae9f1851a196dba2b36cfd545
parent3d3769830be1dc677d487774617f91983bf1f538
async_lru_cache: fix handling of errors in fetch

The future needs to be removed from the pending map in any case, even if
it returned an error, else all upcoming calls to access this key will
always return the same error.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/tools/async_lru_cache.rs