File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 15
15
let stream = TcpStream :: connect ( "127.0.0.1:5433" ) . await . unwrap ( ) ;
16
16
17
17
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 ( ) ;
19
19
20
20
let connection = connection. map ( |r| r. unwrap ( ) ) ;
21
21
tokio:: spawn ( connection) ;
@@ -87,7 +87,7 @@ async fn runtime() {
87
87
. unwrap ( ) ;
88
88
let connector = MakeTlsConnector :: new ( connector) ;
89
89
90
- let ( mut client, connection) = tokio_postgres:: connect (
90
+ let ( client, connection) = tokio_postgres:: connect (
91
91
"host=localhost port=5433 user=postgres sslmode=require" ,
92
92
connector,
93
93
)
Original file line number Diff line number Diff line change 13
13
let stream = TcpStream :: connect ( "127.0.0.1:5433" ) . await . unwrap ( ) ;
14
14
15
15
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 ( ) ;
17
17
18
18
let connection = connection. map ( |r| r. unwrap ( ) ) ;
19
19
tokio:: spawn ( connection) ;
@@ -98,7 +98,7 @@ async fn runtime() {
98
98
builder. set_ca_file ( "../test/server.crt" ) . unwrap ( ) ;
99
99
let connector = MakeTlsConnector :: new ( builder. build ( ) ) ;
100
100
101
- let ( mut client, connection) = tokio_postgres:: connect (
101
+ let ( client, connection) = tokio_postgres:: connect (
102
102
"host=localhost port=5433 user=postgres sslmode=require" ,
103
103
connector,
104
104
)
You can’t perform that action at this time.
0 commit comments