From 15b9a1368d01321579557e3363623e79f6c1e263 Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 27 Oct 2018 03:03:15 +0300 Subject: [PATCH] Remove back actor_id variables. GitOrigin-RevId: 918384376cbae7c489cc88749b3db8d950e26c49 --- tdactor/test/actors_main.cpp | 8 ++++---- test/mtproto.cpp | 2 +- test/tdclient.cpp | 7 +++---- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/tdactor/test/actors_main.cpp b/tdactor/test/actors_main.cpp index ac8af972..e57d690f 100644 --- a/tdactor/test/actors_main.cpp +++ b/tdactor/test/actors_main.cpp @@ -399,7 +399,7 @@ TEST(Actors, send_to_dead) { int threads_n = 5; sched.init(threads_n); - auto actor_id = sched.create_actor_unsafe(0, "SendToDead").release(); + sched.create_actor_unsafe(0, "SendToDead").release(); sched.start(); while (sched.run_main(10)) { // empty @@ -414,7 +414,7 @@ TEST(Actors, main_simple) { int threads_n = 3; sched.init(threads_n); - auto actor_id = sched.create_actor_unsafe(threads_n > 1 ? 1 : 0, "simple", threads_n).release(); + sched.create_actor_unsafe(threads_n > 1 ? 1 : 0, "simple", threads_n).release(); sched.start(); while (sched.run_main(10)) { // empty @@ -429,7 +429,7 @@ TEST(Actors, main) { int threads_n = 9; sched.init(threads_n); - auto actor_id = sched.create_actor_unsafe(threads_n > 1 ? 1 : 0, "MainQuery", threads_n).release(); + sched.create_actor_unsafe(threads_n > 1 ? 1 : 0, "MainQuery", threads_n).release(); sched.start(); while (sched.run_main(10)) { // empty @@ -457,7 +457,7 @@ TEST(Actors, do_after_stop) { int threads_n = 0; sched.init(threads_n); - auto actor_id = sched.create_actor_unsafe(0, "DoAfterStop").release(); + sched.create_actor_unsafe(0, "DoAfterStop").release(); sched.start(); while (sched.run_main(10)) { // empty diff --git a/test/mtproto.cpp b/test/mtproto.cpp index 2c1310b8..674f4fda 100644 --- a/test/mtproto.cpp +++ b/test/mtproto.cpp @@ -342,7 +342,7 @@ TEST(Mtproto, socks5) { int threads_n = 0; sched.init(threads_n); - auto actor_id = sched.create_actor_unsafe(0, "Socks5TestActor").release(); + sched.create_actor_unsafe(0, "Socks5TestActor").release(); sched.start(); while (sched.run_main(10)) { // empty; diff --git a/test/tdclient.cpp b/test/tdclient.cpp index c1720ca6..7c2d8a35 100644 --- a/test/tdclient.cpp +++ b/test/tdclient.cpp @@ -701,10 +701,9 @@ class LoginTestActor : public Actor { double timeout_; Promise<> promise_; }; - auto actor_id = - create_actor("WaitActor", 2, - PromiseCreator::event(self_closure(this, &LoginTestActor::start_up_fence_dec))) - .release(); + create_actor("WaitActor", 2, + PromiseCreator::event(self_closure(this, &LoginTestActor::start_up_fence_dec))) + .release(); } }