set timeout value for connection

This commit is contained in:
Igor Makarov 2021-04-27 13:13:17 +03:00
parent 6a29a50f25
commit a62fc83167
1 changed files with 4 additions and 1 deletions

View File

@ -266,7 +266,10 @@ where
};
if let Some(val) = self.local_address {
connector = connector.local_address(val);
}
};
if let Some(val) = self.timeout {
connector = connector.timeout(val);
};
let connector = DefaultConnector::new(connector.finish());
let connector = boxed::rc_service(self.middleware.new_transform(connector));