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