diff --git a/tdactor/td/actor/impl/Scheduler-decl.h b/tdactor/td/actor/impl/Scheduler-decl.h index c4f827768..8321f38a1 100644 --- a/tdactor/td/actor/impl/Scheduler-decl.h +++ b/tdactor/td/actor/impl/Scheduler-decl.h @@ -39,7 +39,7 @@ extern int VERBOSITY_NAME(actor); class ActorInfo; -enum class ActorSendType { Immediate, Later, LaterWeak }; +enum class ActorSendType { Immediate, Later }; class Scheduler; class SchedulerGuard { diff --git a/tdactor/td/actor/impl/Scheduler.h b/tdactor/td/actor/impl/Scheduler.h index e41e31374..fb9e49891 100644 --- a/tdactor/td/actor/impl/Scheduler.h +++ b/tdactor/td/actor/impl/Scheduler.h @@ -110,12 +110,12 @@ ActorOwn Scheduler::register_actor_impl(Slice name, ActorT *actor_ptr, A ActorId actor_id = weak_info->actor_id(actor_ptr); if (sched_id != sched_id_) { - send(actor_id, Event::start()); + send(actor_id, Event::start()); do_migrate_actor(actor_info, sched_id); } else { pending_actors_list_.put(weak_info->get_list_node()); if (ActorTraits::need_start_up) { - send(actor_id, Event::start()); + send(actor_id, Event::start()); } } @@ -272,7 +272,7 @@ inline void Scheduler::yield_actor(Actor *actor) { yield_actor(actor->get_info()); } inline void Scheduler::yield_actor(ActorInfo *actor_info) { - send(actor_info->actor_id(), Event::yield()); + send(actor_info->actor_id(), Event::yield()); } inline void Scheduler::stop_actor(Actor *actor) {