Skip to content

Commit 10a9ee8

Browse files
committed
separate header
1 parent e139198 commit 10a9ee8

File tree

5 files changed

+31
-22
lines changed

5 files changed

+31
-22
lines changed

ydb/core/tablet/bootstrapper.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <ydb/core/tablet/tablet_setup.h>
44
#include <ydb/core/base/tablet.h>
55
#include <ydb/core/base/blobstorage.h>
6+
#include <ydb/library/actors/core/event_simple_non_local.h>
67

78
namespace NKikimr {
89

ydb/library/actors/core/event.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -373,26 +373,4 @@ namespace NActors {
373373
typedef TEventHandle<TEventType> THandle;
374374
typedef TAutoPtr<THandle> TPtr;
375375
};
376-
377-
378-
// Non-local event with empty serialization
379-
template <typename TEv, ui32 TEventType>
380-
class TEventSimpleNonLocal: public TEventBase<TEv, TEventType> {
381-
public:
382-
TString ToStringHeader() const override {
383-
return TypeName<TEv>();
384-
}
385-
386-
bool SerializeToArcadiaStream(TChunkSerializer* /*serializer*/) const override {
387-
return true;
388-
}
389-
390-
bool IsSerializable() const override {
391-
return true;
392-
}
393-
394-
static IEventBase* Load(TEventSerializedData*) {
395-
return new TEv();
396-
}
397-
};
398376
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#pragma once
2+
3+
#include "event.h"
4+
#include "event_load.h"
5+
#include <util/system/type_name.h>
6+
7+
namespace NActors {
8+
// Non-local event with empty serialization
9+
template <typename TEv, ui32 TEventType>
10+
class TEventSimpleNonLocal: public TEventBase<TEv, TEventType> {
11+
public:
12+
TString ToStringHeader() const override {
13+
return TypeName<TEv>();
14+
}
15+
16+
bool SerializeToArcadiaStream(TChunkSerializer* /*serializer*/) const override {
17+
return true;
18+
}
19+
20+
bool IsSerializable() const override {
21+
return true;
22+
}
23+
24+
static IEventBase* Load(TEventSerializedData*) {
25+
return new TEv();
26+
}
27+
};
28+
}

ydb/library/actors/core/events.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22

33
#include "event_local.h"
4+
#include "event_simple_non_local.h"
45
#include "event_pb.h"
56

67
#include <util/system/unaligned_mem.h>

ydb/library/yql/providers/dq/actors/events.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
#include <ydb/library/actors/core/event_local.h>
1212
#include <ydb/library/actors/core/event_pb.h>
13+
#include <ydb/library/actors/core/event_simple_non_local.h>
1314
#include <ydb/library/actors/core/events.h>
1415

1516
namespace NYql::NDqs {

0 commit comments

Comments
 (0)