redlib icon indicating copy to clipboard operation
redlib copied to clipboard

Fix #395: cache is error-aware

Open Tokarak opened this issue 9 months ago • 1 comments

  • Use from_static instead of from_string
  • On error, fallback to cache; Use hyper::Error
  • Same fix for another function

Fixes: #395, but it's very difficult to replicate the conditions which triggered the bug described there.

Tokarak avatar Mar 18 '25 03:03 Tokarak

By The Way that ugly unwrap can be fixed using .map_err for now. I decided to go all the way and try to migrate to axum 👀. That pr will have a fix for this issue, but I Can’t Be Asked to rebase Right Now.

Tokarak avatar Mar 20 '25 12:03 Tokarak