diff --git a/tdactor/td/actor/impl/Actor-decl.h b/tdactor/td/actor/impl/Actor-decl.h index eacc871cd..4aca52d8a 100644 --- a/tdactor/td/actor/impl/Actor-decl.h +++ b/tdactor/td/actor/impl/Actor-decl.h @@ -80,7 +80,7 @@ class Actor : public ObserverBase { string set_tag(string tag); // for ActorInfo mostly - void init(ObjectPool::OwnerPtr &&info); + void set_info(ObjectPool::OwnerPtr &&info); ActorInfo *get_info(); const ActorInfo *get_info() const; ObjectPool::OwnerPtr clear(); diff --git a/tdactor/td/actor/impl/Actor.h b/tdactor/td/actor/impl/Actor.h index 81f9f41a9..c3025646a 100644 --- a/tdactor/td/actor/impl/Actor.h +++ b/tdactor/td/actor/impl/Actor.h @@ -110,7 +110,7 @@ inline string Actor::set_tag(string tag) { return old_tag; } -inline void Actor::init(ObjectPool::OwnerPtr &&info) { +inline void Actor::set_info(ObjectPool::OwnerPtr &&info) { info_ = std::move(info); } diff --git a/tdactor/td/actor/impl/ActorInfo.h b/tdactor/td/actor/impl/ActorInfo.h index 0bb85e728..a8e80342c 100644 --- a/tdactor/td/actor/impl/ActorInfo.h +++ b/tdactor/td/actor/impl/ActorInfo.h @@ -45,7 +45,7 @@ inline void ActorInfo::init(int32 sched_id, Slice name, ObjectPool::O name_.assign(name.data(), name.size()); #endif - actor_->init(std::move(this_ptr)); + actor_->set_info(std::move(this_ptr)); deleter_ = deleter; need_context_ = need_context; need_start_up_ = need_start_up;