Web service that provides an API for today's weather forecast for air quality, rain and UV metrics.
Find a file
Paul van Tilburg cf77dbb5e7
Refactor maps cache to hold lock as short as possible
This makes the response time way more snappy when the maps thread
is updating its cache.

* Move the `MapsHandle` type to the `maps` module
* SWitch to using the standard library mutex
* Split refresh methods into retrieval methods that don't need the lock
  and check timestamp & update methods that only need it shortly
* Introduce the `MapsRefresh` trait and implement it for `MapsHandle`
* Reorder some methods for clarity
* Small documentation fixes
2022-02-13 11:22:02 +01:00
src Refactor maps cache to hold lock as short as possible 2022-02-13 11:22:02 +01:00
.gitignore Initial import into Git 2022-02-12 15:03:00 +01:00
Cargo.lock Refactor so that no static is necessary for the maps cache 2022-02-12 21:35:58 +01:00
Cargo.toml Refactor so that no static is necessary for the maps cache 2022-02-12 21:35:58 +01:00