Upgrade to tokio alpha.4

This commit is contained in:
Steven Fackler
2019-08-29 18:10:58 -07:00
parent c026644820
commit 2a2b76d1b8
9 changed files with 29 additions and 83 deletions

View File

@@ -10,9 +10,7 @@ where
T: TlsConnect<TcpStream>,
T::Stream: 'static + Send,
{
let stream = TcpStream::connect(&"127.0.0.1:5433".parse().unwrap())
.await
.unwrap();
let stream = TcpStream::connect("127.0.0.1:5433").await.unwrap();
let builder = s.parse::<tokio_postgres::Config>().unwrap();
let (mut client, connection) = builder.connect_raw(stream, tls).await.unwrap();