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 http_signature_normalization_actix::prelude::*;
use sha2::{Digest, Sha256};
@ -72,8 +72,8 @@ pub enum MyError {
Canceled,
}
impl From<BlockingError> for MyError {
fn from(_: BlockingError) -> Self {
impl From<JoinError> for MyError {
fn from(_: JoinError) -> Self {
MyError::Canceled
}
}