This commit is contained in:
parent
40e942337f
commit
2126a142f4
4 changed files with 100 additions and 4 deletions
|
|
@ -168,7 +168,7 @@ impl MTPClient {
|
|||
*/
|
||||
pub async fn connect(config: ClientConfig) -> Result<MTPConnection, CommunicationError> {
|
||||
let (sender, receiver) =
|
||||
mtp_transport::connect(&config.url, config.server_cert(), Policy::default()).await?;
|
||||
mtp_transport::connect(&config.url, config.server_cert(), config.policy).await?;
|
||||
|
||||
let version_str = format!("{}", PROTOCOL_VERSION);
|
||||
let mut ident = CommunicationValue::new(mtp_codec::CommunicationType::Identification)
|
||||
|
|
|
|||
Loading…
Reference in a new issue