We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5551b3e commit d7ccbb3Copy full SHA for d7ccbb3
tokio-postgres/src/config.rs
@@ -378,7 +378,7 @@ impl Config {
378
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().copied()
+ self.keepalive_config.interval
382
}
383
384
/// Sets the maximum number of TCP keepalive probes that will be sent before dropping a connection.
@@ -391,7 +391,7 @@ impl Config {
391
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().copied()
+ self.keepalive_config.retries
395
396
397
/// Sets the requirements of the session.
0 commit comments