diff options
author | xenoxeno <xeno@ydb.tech> | 2023-04-03 13:45:56 +0300 |
---|---|---|
committer | xenoxeno <xeno@ydb.tech> | 2023-04-03 13:45:56 +0300 |
commit | 2deb0425a764cc84e3ea84972f78f303daea1016 (patch) | |
tree | 59d7eaa55572ed36ce82b775a80fbdac0cd7f18d /library | |
parent | 75848749eb1265cc689f8b5e435ec058ccc4f292 (diff) | |
download | ydb-2deb0425a764cc84e3ea84972f78f303daea1016.tar.gz |
avoiding recursion on some builds
Diffstat (limited to 'library')
-rw-r--r-- | library/cpp/actors/core/actor.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/library/cpp/actors/core/actor.h b/library/cpp/actors/core/actor.h index dc9d4d078b..7cc0baec98 100644 --- a/library/cpp/actors/core/actor.h +++ b/library/cpp/actors/core/actor.h @@ -156,11 +156,6 @@ namespace NActors { bool Forward(TAutoPtr<IEventHandle>& ev, const TActorId& recipient) const; template <ESendingType SendingType = ESendingType::Common> bool Forward(THolder<IEventHandle>& ev, const TActorId& recipient) const; - template <ESendingType SendingType = ESendingType::Common, typename TEventHandle> - bool Forward(TAutoPtr<TEventHandle>& ev, const TActorId& recipient) const { - TAutoPtr<IEventHandle> evi(ev.Release()); - return Forward(evi, recipient); - } TInstant Now() const; TMonotonic Monotonic() const; @@ -549,7 +544,7 @@ namespace NActors { template <typename TEventHandle> static bool Forward(TAutoPtr<TEventHandle>& ev, const TActorId& recipient) { TAutoPtr<IEventHandle> evi(ev.Release()); - return Forward(evi, recipient); + return TActivationContext::Forward(evi, recipient); } void Schedule(TInstant deadline, IEventBase* ev, ISchedulerCookie* cookie = nullptr) const noexcept final; |