Skip to content

Commit

Permalink
use static resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
eaypek-tfh committed Jan 21, 2025
1 parent 7eb2f66 commit a5d01eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iris-mpc/src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ async fn server_main(config: Config) -> eyre::Result<()> {

// Increase S3 retries to 5
let static_resolver = StaticResolver::new(db_chunks_bucket_ips.await?);
let _http_client = HyperClientBuilder::new()
let http_client = HyperClientBuilder::new()
.crypto_mode(CryptoMode::Ring)
.build_with_resolver(static_resolver);

Expand All @@ -802,7 +802,7 @@ async fn server_main(config: Config) -> eyre::Result<()> {
// disable stalled stream protection to avoid panics during s3 import
.stalled_stream_protection(StalledStreamProtectionConfig::disabled())
.retry_config(retry_config)
// .http_client(http_client)
.http_client(http_client)
.build();

let s3_client = Arc::new(S3Client::from_conf(s3_config));
Expand Down

0 comments on commit a5d01eb

Please sign in to comment.