Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc943b0b

Browse files
committed
change handling of Action:Error from handle_response so that error goes to client
1 parent7cafb20 commitc943b0b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

‎Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name ="mysql-proxy"
33
description ="Extensible MySQL Proxy"
4-
version ="0.1.6"
4+
version ="0.1.7"
55
authors = ["Andy Grove <andygrove73@gmail.com>"]
66
homepage ="https://github.com/AgilData/mysql-proxy-rs"
77
documentation ="https://github.com/AgilData/mysql-proxy-rs"

‎src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,10 @@ impl<H> Future for Pipe<H> where H: PacketHandler + 'static {
338338
self.server_writer.push(&p);
339339
}
340340
},
341-
Action::Error{ ..} =>panic!("not supported")
341+
Action::Error{ code, state, msg} =>{
342+
let error_packet =Packet::error_packet(code, state, msg);
343+
self.client_writer.push(&error_packet);
344+
}
342345
};
343346
}
344347

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp