aboutsummaryrefslogtreecommitdiffhomepage
path: root/benchmark
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2021-07-05 21:04:23 +0300
committerlevlam <levlam@telegram.org>2021-07-05 21:04:23 +0300
commit61664b4044f0e7b26c4bd137c86e77867fcdb726 (patch)
tree785c3b0f9dcb149f92b9cc33d127387ab4be1348 /benchmark
parent4404e47f756662893c3f60577b020b035583169f (diff)
Move remaining MTProto classes to namespace mtproto.
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/bench_handshake.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/benchmark/bench_handshake.cpp b/benchmark/bench_handshake.cpp
index c3f364c2d..e57c78dbb 100644
--- a/benchmark/bench_handshake.cpp
+++ b/benchmark/bench_handshake.cpp
@@ -33,7 +33,7 @@ class HandshakeBench final : public Benchmark {
return "Handshake";
}
- class FakeDhCallback final : public DhCallback {
+ class FakeDhCallback final : public mtproto::DhCallback {
public:
int is_good_prime(Slice prime_str) const final {
auto it = cache.find(prime_str.str());
@@ -52,10 +52,10 @@ class HandshakeBench final : public Benchmark {
} dh_callback;
void run(int n) final {
- DhHandshake a;
- DhHandshake b;
+ mtproto::DhHandshake a;
+ mtproto::DhHandshake b;
auto prime = base64url_decode(prime_base64).move_as_ok();
- DhHandshake::check_config(g, prime, &dh_callback).ensure();
+ mtproto::DhHandshake::check_config(g, prime, &dh_callback).ensure();
for (int i = 0; i < n; i += 2) {
a.set_config(g, prime);
b.set_config(g, prime);