aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/actors/core
diff options
context:
space:
mode:
authorstanly <stanly@yandex-team.ru>2022-02-10 16:46:49 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:49 +0300
commit6170310e8721e225f64ddabf7a7358253d7a1249 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /library/cpp/actors/core
parentcde218e65dfef5ce03a48d641fd8f7913cf17b2d (diff)
downloadydb-6170310e8721e225f64ddabf7a7358253d7a1249.tar.gz
Restoring authorship annotation for <stanly@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/actors/core')
-rw-r--r--library/cpp/actors/core/actor.h12
-rw-r--r--library/cpp/actors/core/event_pb.h6
2 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/actors/core/actor.h b/library/cpp/actors/core/actor.h
index 35008ff9be..ed29bd14b9 100644
--- a/library/cpp/actors/core/actor.h
+++ b/library/cpp/actors/core/actor.h
@@ -98,10 +98,10 @@ namespace NActors {
}
bool Send(const TActorId& recipient, IEventBase* ev, ui32 flags = 0, ui64 cookie = 0, NWilson::TTraceId traceId = {}) const;
- template <typename TEvent>
+ template <typename TEvent>
bool Send(const TActorId& recipient, THolder<TEvent> ev, ui32 flags = 0, ui64 cookie = 0, NWilson::TTraceId traceId = {}) const {
- return Send(recipient, static_cast<IEventBase*>(ev.Release()), flags, cookie, std::move(traceId));
- }
+ return Send(recipient, static_cast<IEventBase*>(ev.Release()), flags, cookie, std::move(traceId));
+ }
bool Send(TAutoPtr<IEventHandle> ev) const;
TInstant Now() const;
@@ -351,10 +351,10 @@ namespace NActors {
protected:
void Describe(IOutputStream&) const noexcept override;
bool Send(const TActorId& recipient, IEventBase* ev, ui32 flags = 0, ui64 cookie = 0, NWilson::TTraceId traceId = {}) const noexcept final;
- template <typename TEvent>
+ template <typename TEvent>
bool Send(const TActorId& recipient, THolder<TEvent> ev, ui32 flags = 0, ui64 cookie = 0, NWilson::TTraceId traceId = {}) const{
- return Send(recipient, static_cast<IEventBase*>(ev.Release()), flags, cookie, std::move(traceId));
- }
+ return Send(recipient, static_cast<IEventBase*>(ev.Release()), flags, cookie, std::move(traceId));
+ }
template <class TEvent, class ... TEventArgs>
bool Send(TActorId recipient, TEventArgs&& ... args) const {
diff --git a/library/cpp/actors/core/event_pb.h b/library/cpp/actors/core/event_pb.h
index 9713d0a85d..d7546b901a 100644
--- a/library/cpp/actors/core/event_pb.h
+++ b/library/cpp/actors/core/event_pb.h
@@ -144,12 +144,12 @@ namespace NActors {
{
Record = rec;
}
-
+
explicit TEventPBBase(TRecord&& rec)
{
Record = std::move(rec);
}
-
+
TString ToStringHeader() const override {
return Record.GetTypeName();
}
@@ -216,7 +216,7 @@ namespace NActors {
return Record.SerializeToZeroCopyStream(chunker);
}
- ui32 CalculateSerializedSize() const override {
+ ui32 CalculateSerializedSize() const override {
ssize_t result = Record.ByteSize();
if (result >= 0 && Payload) {
++result; // marker