aboutsummaryrefslogtreecommitdiffhomepage
path: root/benchmark
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2021-09-03 12:27:59 +0300
committerlevlam <levlam@telegram.org>2021-09-03 12:27:59 +0300
commit41c391f140a1450b0541201c560d30455158690c (patch)
tree54da11b876cf629c3b1707520e7e0bc2a2816f81 /benchmark
parent0b6d40b4b51e7a71f0525338bbcf33dad8b66cc4 (diff)
Update layer to 133.
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/bench_tddb.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/bench_tddb.cpp b/benchmark/bench_tddb.cpp
index 8427a877d..4677d681d 100644
--- a/benchmark/bench_tddb.cpp
+++ b/benchmark/bench_tddb.cpp
@@ -50,12 +50,12 @@ class MessagesDbBench final : public Benchmark {
void run(int n) final {
auto guard = scheduler_->get_main_guard();
for (int i = 0; i < n; i += 20) {
- auto dialog_id = DialogId{UserId{Random::fast(1, 100)}};
+ auto dialog_id = DialogId(UserId(static_cast<int64>(Random::fast(1, 100))));
auto message_id_raw = Random::fast(1, 100000);
for (int j = 0; j < 20; j++) {
auto message_id = MessageId{ServerMessageId{message_id_raw + j}};
auto unique_message_id = ServerMessageId{i + 1};
- auto sender_user_id = UserId{Random::fast(1, 1000)};
+ auto sender_user_id = UserId(static_cast<int64>(Random::fast(1, 1000)));
auto random_id = i + 1;
auto ttl_expires_at = 0;
auto data = BufferSlice(Random::fast(100, 299));