Update client example

This commit is contained in:
Aode (Lion) 2022-02-26 11:49:35 -06:00
parent e02a40e3a5
commit d2f8669002

View file

@ -1,4 +1,4 @@
use actix_web::error::BlockingError; use actix_rt::task::JoinError;
use awc::Client; use awc::Client;
use http_signature_normalization_actix::prelude::*; use http_signature_normalization_actix::prelude::*;
use sha2::{Digest, Sha256}; use sha2::{Digest, Sha256};
@ -72,8 +72,8 @@ pub enum MyError {
Canceled, Canceled,
} }
impl From<BlockingError> for MyError { impl From<JoinError> for MyError {
fn from(_: BlockingError) -> Self { fn from(_: JoinError) -> Self {
MyError::Canceled MyError::Canceled
} }
} }