File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ impl Config {
378
378
379
379
/// Gets the time interval between TCP keepalive probes.
380
380
pub fn get_keepalives_interval ( & self ) -> Option < Duration > {
381
- self . keepalive_config . interval . as_ref ( ) . copied ( )
381
+ self . keepalive_config . interval
382
382
}
383
383
384
384
/// Sets the maximum number of TCP keepalive probes that will be sent before dropping a connection.
@@ -391,7 +391,7 @@ impl Config {
391
391
392
392
/// Gets the maximum number of TCP keepalive probes that will be sent before dropping a connection.
393
393
pub fn get_keepalives_retries ( & self ) -> Option < u32 > {
394
- self . keepalive_config . retries . as_ref ( ) . copied ( )
394
+ self . keepalive_config . retries
395
395
}
396
396
397
397
/// Sets the requirements of the session.
You can’t perform that action at this time.
0 commit comments