Skip to content

Commit f024718

Browse files
committed
add CCI status badge
1 parent 4fd7967 commit f024718

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# mysql-proxy-rs
22

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)
34
[![Version](https://img.shields.io/crates/v/mysql-proxy.svg)](https://crates.io/crates/mysql-proxy)
45
[![Docs](https://docs.rs/mysql-proxy/badge.svg)](https://docs.rs/mysql-proxy)
56

examples/proxy.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ fn main() {
4747
let done = socket.incoming().for_each(move |(socket, _)| {
4848

4949
// 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 {})
5454
});
5555

5656
// tell the tokio reactor to run the future

0 commit comments

Comments
 (0)
close