feat: swap ureq for reqwest

This commit is contained in:
2024-10-15 11:27:29 +01:00
parent 5453205a58
commit c86631423d
6 changed files with 241 additions and 92 deletions

View File

@ -285,7 +285,7 @@ async fn process_upload(
let pubkey_vec = auth.event.pubkey.to_bytes().to_vec();
if let Some(wh) = webhook.as_ref() {
match wh.store_file(&pubkey_vec, blob.clone()) {
match wh.store_file(&pubkey_vec, blob.clone()).await {
Ok(store) => {
if !store {
let _ = fs::remove_file(blob.path);