We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 855d3cf commit d09afbcCopy full SHA for d09afbc
casper-server/src/main.rs
@@ -3,7 +3,7 @@ use std::sync::Arc;
3
use std::time::Duration;
4
5
use clap::Parser;
6
-use ntex::http::client::Client as HttpClient;
+use ntex::http::client::{Client as HttpClient, Connector as HttpConnector};
7
use ntex::http::HttpService;
8
use ntex::io::Io;
9
use ntex::rt::System;
@@ -86,7 +86,9 @@ async fn main_inner(args: Args) -> anyhow::Result<()> {
86
let id = context.id;
87
88
// Construct default HTTP client and attach it to Lua
89
+ let connector = HttpConnector::new().limit(2000);
90
let http_client = HttpClient::build()
91
+ .connector(connector.finish())
92
.disable_redirects()
93
.disable_timeout()
94
.finish();
0 commit comments