Merge branch 'master' of ssh://git.methanium.net/methanium/mtp
All checks were successful
CI / checks (push) Successful in 5m56s
All checks were successful
CI / checks (push) Successful in 5m56s
This commit is contained in:
commit
590810ce59
10 changed files with 195 additions and 158 deletions
|
|
@ -352,9 +352,11 @@ fn build_endpoint(
|
|||
transport.keep_alive_interval(Some(keep_alive));
|
||||
}
|
||||
if let Some(idle_timeout) = config.policy.max_idle_timeout {
|
||||
transport.max_idle_timeout(Some(idle_timeout.try_into().map_err(
|
||||
|error| CommunicationError::Other(format!("{error}")),
|
||||
)?));
|
||||
transport.max_idle_timeout(Some(
|
||||
idle_timeout
|
||||
.try_into()
|
||||
.map_err(|error| CommunicationError::Other(format!("{error}")))?,
|
||||
));
|
||||
}
|
||||
Arc::new(transport)
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue