Skip to content

Commit e3f2eb7

Browse files
committed
Update sync config for sslmode
1 parent 2d3b9bb commit e3f2eb7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

postgres/src/config.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use log::error;
44
use std::path::Path;
55
use std::str::FromStr;
66
use std::time::Duration;
7-
use tokio_postgres::{Error, MakeTlsConnect, Socket, TargetSessionAttrs, TlsConnect};
7+
use tokio_postgres::{Error, MakeTlsConnect, Socket, SslMode, TargetSessionAttrs, TlsConnect};
88

99
use crate::{Client, RUNTIME};
1010

@@ -50,6 +50,11 @@ impl Config {
5050
self
5151
}
5252

53+
pub fn ssl_mode(&mut self, ssl_mode: SslMode) -> &mut Config {
54+
self.0.ssl_mode(ssl_mode);
55+
self
56+
}
57+
5358
pub fn host(&mut self, host: &str) -> &mut Config {
5459
self.0.host(host);
5560
self

0 commit comments

Comments
 (0)