Avoid warning about set but not used variable.
This commit is contained in:
parent
76080dfb1c
commit
81cb929b37
@ -260,6 +260,7 @@ class QueryBench final : public td::Benchmark {
|
|||||||
} else if (type == 4) {
|
} else if (type == 4) {
|
||||||
int val = 0;
|
int val = 0;
|
||||||
send_lambda(client_, [&] { val = n_ * n_; });
|
send_lambda(client_, [&] { val = n_ * n_; });
|
||||||
|
CHECK(val == n_ * n_);
|
||||||
} else if (type == 5) {
|
} else if (type == 5) {
|
||||||
send_closure(client_, &ClientActor::f_promise,
|
send_closure(client_, &ClientActor::f_promise,
|
||||||
td::PromiseCreator::lambda([actor_id = actor_id(this), n = n_](td::Unit) {
|
td::PromiseCreator::lambda([actor_id = actor_id(this), n = n_](td::Unit) {
|
||||||
|
Loading…
Reference in New Issue
Block a user