File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 let stream = TcpStream :: connect ( "127.0.0.1:5433" ) . await . unwrap ( ) ;
1616
1717 let builder = s. parse :: < tokio_postgres:: Config > ( ) . unwrap ( ) ;
18- let ( mut client, connection) = builder. connect_raw ( stream, tls) . await . unwrap ( ) ;
18+ let ( client, connection) = builder. connect_raw ( stream, tls) . await . unwrap ( ) ;
1919
2020 let connection = connection. map ( |r| r. unwrap ( ) ) ;
2121 tokio:: spawn ( connection) ;
@@ -87,7 +87,7 @@ async fn runtime() {
8787 . unwrap ( ) ;
8888 let connector = MakeTlsConnector :: new ( connector) ;
8989
90- let ( mut client, connection) = tokio_postgres:: connect (
90+ let ( client, connection) = tokio_postgres:: connect (
9191 "host=localhost port=5433 user=postgres sslmode=require" ,
9292 connector,
9393 )
Original file line number Diff line number Diff line change 1313 let stream = TcpStream :: connect ( "127.0.0.1:5433" ) . await . unwrap ( ) ;
1414
1515 let builder = s. parse :: < tokio_postgres:: Config > ( ) . unwrap ( ) ;
16- let ( mut client, connection) = builder. connect_raw ( stream, tls) . await . unwrap ( ) ;
16+ let ( client, connection) = builder. connect_raw ( stream, tls) . await . unwrap ( ) ;
1717
1818 let connection = connection. map ( |r| r. unwrap ( ) ) ;
1919 tokio:: spawn ( connection) ;
@@ -98,7 +98,7 @@ async fn runtime() {
9898 builder. set_ca_file ( "../test/server.crt" ) . unwrap ( ) ;
9999 let connector = MakeTlsConnector :: new ( builder. build ( ) ) ;
100100
101- let ( mut client, connection) = tokio_postgres:: connect (
101+ let ( client, connection) = tokio_postgres:: connect (
102102 "host=localhost port=5433 user=postgres sslmode=require" ,
103103 connector,
104104 )
You can’t perform that action at this time.
0 commit comments