Don't continually re-request completed requests that had load errors.

This commit is contained in:
Josh Matthews 2020-02-21 14:51:45 -05:00
parent 2742fd2bea
commit d4e85f9a90
2 changed files with 21 additions and 20 deletions

View file

@ -73,14 +73,6 @@ pub enum ImageResponse {
None,
}
/// The current state of an image in the cache.
#[derive(Clone, Copy, Debug, Deserialize, PartialEq, Serialize)]
pub enum ImageState {
Pending(PendingImageId),
LoadError,
NotRequested(PendingImageId),
}
/// The unique id for an image that has previously been requested.
#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, MallocSizeOf, PartialEq, Serialize)]
pub struct PendingImageId(pub u64);