File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,7 @@ impl AsyncWrite for TcpConnWrapper {
43
43
cx : & mut Context < ' _ > ,
44
44
buf : & [ u8 ] ,
45
45
) -> Poll < std:: io:: Result < usize > > {
46
- let amt = futures:: ready!( Pin :: new( & mut * self . conn) . poll_write( cx, buf) ) ?;
47
- Poll :: Ready ( Ok ( amt) )
46
+ Pin :: new ( & mut * self . conn ) . poll_write ( cx, buf)
48
47
}
49
48
50
49
fn poll_flush ( mut self : Pin < & mut Self > , cx : & mut Context < ' _ > ) -> Poll < std:: io:: Result < ( ) > > {
Original file line number Diff line number Diff line change @@ -51,8 +51,7 @@ impl AsyncWrite for TlsConnWrapper {
51
51
cx : & mut Context < ' _ > ,
52
52
buf : & [ u8 ] ,
53
53
) -> Poll < std:: io:: Result < usize > > {
54
- let amt = futures:: ready!( Pin :: new( & mut * self . conn) . poll_write( cx, buf) ) ?;
55
- Poll :: Ready ( Ok ( amt) )
54
+ Pin :: new ( & mut * self . conn ) . poll_write ( cx, buf)
56
55
}
57
56
58
57
fn poll_flush ( mut self : Pin < & mut Self > , cx : & mut Context < ' _ > ) -> Poll < std:: io:: Result < ( ) > > {
@@ -67,7 +66,6 @@ impl AsyncWrite for TlsConnWrapper {
67
66
#[ async_trait]
68
67
impl Manager < TlsStream < TcpStream > , Error > for TlsConnection {
69
68
async fn create ( & self ) -> Result < TlsStream < TcpStream > , Error > {
70
- log:: trace!( "Creating new socket to {:?}" , self . addr) ;
71
69
let raw_stream = async_std:: net:: TcpStream :: connect ( self . addr ) . await ?;
72
70
let tls_stream = add_tls ( & self . host , raw_stream) . await ?;
73
71
Ok ( tls_stream)
You can’t perform that action at this time.
0 commit comments