sinoptik/src
Paul van Tilburg f67f3dfe82
Only update the cache if retrieval yielded maps
* Add `is_*_stale` methods to the `MapRefresh` trait
* Only update the maps of a type if `retrieve_image` yielded something
  or if the maps are stale
* Also only then bump the timestamp for the map type

This means if there is nothing in the cache, it will retry each refresh
to get something because the timestamp is not bumped until there is
something. Once there are maps, it will only update it and bump the
timestamp if there is an image, that or, it has become stale and it
can be set to `None` and we end up in the initial state.
2022-02-17 21:38:41 +01:00
..
providers Introduce the Position struct; add position module 2022-02-15 14:15:59 +01:00
forecast.rs Introduce the Position struct; add position module 2022-02-15 14:15:59 +01:00
main.rs Provide not the first map but an instant-relative map 2022-02-17 21:38:16 +01:00
maps.rs Only update the cache if retrieval yielded maps 2022-02-17 21:38:41 +01:00
position.rs Introduce the Position struct; add position module 2022-02-15 14:15:59 +01:00
providers.rs Add the Buienradar provider 2022-02-13 15:38:17 +01:00