We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6493f0f commit 3ac7491Copy full SHA for 3ac7491
xls/examples/passthrough.x
@@ -55,12 +55,13 @@ proc PassthroughTest {
55
let tok = send(tok, data_s, data_to_send);
56
let (tok, received_data) = recv(tok, data_r);
57
58
+ trace_fmt!("send: {}, received: {}, in transaction {}",
59
+ data_to_send, received_data, count + u32:1);
60
+
61
assert_eq(data_to_send, received_data);
- trace_fmt!("Received and send back {} transactions", count + u32:1);
62
- if (count == NUMBER_OF_TESTED_TRANSACTIONS - u32:1) {
- send(tok, terminator, true);
63
- } else {()};
+ let do_send = (count == NUMBER_OF_TESTED_TRANSACTIONS - u32:1);
64
+ send_if(tok, terminator, do_send, true);
65
66
count + u32:1
67
}
0 commit comments