You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.
In PR #250 we complicated the tiles handler by adding a cleanup section to reset the tile cache state if any errors occurred. We ended up wrapping the work of the function where potential errors might occur in a closure, basically emulating a "try finally" block.
This was a quick fix with the intention that we improve it later. There's also a TODO (comment) that this solution doesn't handle the cache cleanup on potential panics.
The scopeguard crate offers what looks like an easy way to solve this instead, adding a Go-like defer macro that additionally works for panics.
┆Issue is synchronized with this Jira Task
┆epic: Contile production v1
The text was updated successfully, but these errors were encountered:
and kill TilesCache's Deref to dashmap, since we now only expose get and insert
outside of the cache module
Closes#342
Co-authored-by: JR Conlin <jr+git@mozilla.com>
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
In PR #250 we complicated the tiles handler by adding a cleanup section to reset the tile cache state if any errors occurred. We ended up wrapping the work of the function where potential errors might occur in a closure, basically emulating a "try finally" block.
This was a quick fix with the intention that we improve it later. There's also a TODO (comment) that this solution doesn't handle the cache cleanup on potential panics.
The scopeguard crate offers what looks like an easy way to solve this instead, adding a Go-like defer macro that additionally works for panics.
┆Issue is synchronized with this Jira Task
┆epic: Contile production v1
The text was updated successfully, but these errors were encountered: