File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
# mysql-proxy-rs
2
2
3
+ [ ![ CircleCI] ( https://circleci.com/gh/AgilData/mysql-proxy-rs/tree/master.svg?style=svg )] ( https://circleci.com/gh/AgilData/mysql-proxy-rs/tree/master )
3
4
[ ![ Version] ( https://img.shields.io/crates/v/mysql-proxy.svg )] ( https://crates.io/crates/mysql-proxy )
4
5
[ ![ Docs] ( https://docs.rs/mysql-proxy/badge.svg )] ( https://docs.rs/mysql-proxy )
5
6
Original file line number Diff line number Diff line change @@ -47,10 +47,10 @@ fn main() {
47
47
let done = socket. incoming ( ) . for_each ( move |( socket, _) | {
48
48
49
49
// create a future to serve requests
50
- let future = TcpStream :: connect ( & mysql_addr, & handle) . and_then ( move |mysql| {
51
- Ok ( ( socket, mysql) )
52
- } ) . and_then ( move |( client, server) | {
53
- Pipe :: new ( Rc :: new ( client) , Rc :: new ( server) , DemoHandler { } )
50
+ let future = TcpStream :: connect ( & mysql_addr, & handle)
51
+ . and_then ( move |mysql| { Ok ( ( socket, mysql) ) } )
52
+ . and_then ( move |( client, server) |
53
+ { Pipe :: new ( Rc :: new ( client) , Rc :: new ( server) , DemoHandler { } )
54
54
} ) ;
55
55
56
56
// tell the tokio reactor to run the future
You can’t perform that action at this time.
0 commit comments