mirror of
https://git.asonix.dog/asonix/http-signature-normalization.git
synced 2024-11-14 13:41:08 +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 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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue