mirror of
https://git.asonix.dog/asonix/http-signature-normalization.git
synced 2024-11-21 17:00:59 +00:00
Update client example
This commit is contained in:
parent
e02a40e3a5
commit
d2f8669002
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue