Skip to content

Commit

Permalink
Upgrade actix crates (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
gferon authored Apr 19, 2021
1 parent cbc859e commit 0544a61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions libsignal-service-actix/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ edition = "2018"
libsignal-service = { path = "../libsignal-service" }
libsignal-protocol = { git = "https://github.com/Michael-F-Bryan/libsignal-protocol-rs" }

awc = { version = "3.0.0-beta.1", features=["rustls"] }
actix = "0.11.0-beta.1"
actix-http = "3.0.0-beta.1"
awc = { version = "3.0.0-beta.5", features=["rustls"] }
actix = "0.11.1"
actix-http = "3.0.0-beta.6"
actix-rt = "2.0"
mpart-async = "0.5.0"
serde_json = "1.0"
Expand Down
5 changes: 2 additions & 3 deletions libsignal-service-actix/src/push_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl AwcPushService {
{
builder = builder.basic_auth(
&http_credentials.username,
Some(&http_credentials.password),
&http_credentials.password,
);
}
Ok(builder)
Expand Down Expand Up @@ -497,8 +497,7 @@ fn get_client(cfg: &ServiceConfiguration, user_agent: &str) -> Client {
.unwrap();
let connector = Connector::new()
.rustls(Arc::new(ssl_config))
.timeout(Duration::from_secs(10)) // https://github.com/actix/actix-web/issues/1047
.finish();
.timeout(Duration::from_secs(10)); // https://github.com/actix/actix-web/issues/1047
let client = awc::ClientBuilder::new()
.connector(connector)
.header("X-Signal-Agent", user_agent)
Expand Down

0 comments on commit 0544a61

Please sign in to comment.