Skip to content

Commit

Permalink
Revert "Fix tx/rx order for android RPC"
Browse files Browse the repository at this point in the history
This reverts commit 205eaa9.
  • Loading branch information
madeye authored and zonyitoo committed Jul 20, 2020
1 parent 5324ab7 commit b56eaac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/relay/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,7 @@ async fn flow_report_task(context: SharedContext) -> io::Result<()> {
let tx = flow_stat.tcp().tx() + flow_stat.udp().tx();
let rx = flow_stat.tcp().rx() + flow_stat.udp().rx();

// first is rx, second is tx.
let buf: [u64; 2] = [rx, tx];
let buf: [u64; 2] = [tx, rx];
let buf = unsafe { slice::from_raw_parts(buf.as_ptr() as *const _, 16) };

match time::timeout(timeout, stream.write_all(buf)).await {
Expand Down

0 comments on commit b56eaac

Please sign in to comment.