Update sync config for sslmode

This commit is contained in:
Steven Fackler 2019-01-13 15:41:59 -08:00
parent 2d3b9bb1c6
commit e3f2eb7244

View File

@ -4,7 +4,7 @@ use log::error;
use std::path::Path;
use std::str::FromStr;
use std::time::Duration;
use tokio_postgres::{Error, MakeTlsConnect, Socket, TargetSessionAttrs, TlsConnect};
use tokio_postgres::{Error, MakeTlsConnect, Socket, SslMode, TargetSessionAttrs, TlsConnect};
use crate::{Client, RUNTIME};
@ -50,6 +50,11 @@ impl Config {
self
}
pub fn ssl_mode(&mut self, ssl_mode: SslMode) -> &mut Config {
self.0.ssl_mode(ssl_mode);
self
}
pub fn host(&mut self, host: &str) -> &mut Config {
self.0.host(host);
self