This commit is contained in:
Niklas Hallqvist 2023-04-04 15:43:39 +02:00 committed by GitHub
parent 45d51d708c
commit e59a165241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,12 @@ impl From<&KeepaliveConfig> for TcpKeepalive {
tcp_keepalive = tcp_keepalive.with_interval(interval);
}
#[cfg(not(any(target_os = "redox", target_os = "solaris", target_os = "windows", target_os = "openbsd")))]
#[cfg(not(any(
target_os = "redox",
target_os = "solaris",
target_os = "windows",
target_os = "openbsd"
)))]
if let Some(retries) = keepalive_config.retries {
tcp_keepalive = tcp_keepalive.with_retries(retries);
}