aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authorkruall <kruall@ydb.tech>2023-05-04 13:05:43 +0300
committerkruall <kruall@ydb.tech>2023-05-04 13:05:43 +0300
commit1c4a063ed59a9068a751101684759dec0d82055d (patch)
treef575472b0deedda810184c2604c75fe1622df3d7 /library/cpp
parent4d22b22f07686cf87eba749dc5f6748a9a360dcd (diff)
downloadydb-1c4a063ed59a9068a751101684759dec0d82055d.tar.gz
Revert: "Update old examples"
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/actors/examples/01_ping_pong/main.cpp4
-rw-r--r--library/cpp/actors/examples/02_discovery/lookup.cpp4
-rw-r--r--library/cpp/actors/examples/02_discovery/publish.cpp12
3 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/actors/examples/01_ping_pong/main.cpp b/library/cpp/actors/examples/01_ping_pong/main.cpp
index c9223f78ef..8075d255fd 100644
--- a/library/cpp/actors/examples/01_ping_pong/main.cpp
+++ b/library/cpp/actors/examples/01_ping_pong/main.cpp
@@ -53,7 +53,7 @@ public:
STFUNC(StateWait) {
switch (ev->GetTypeRewrite()) {
hFunc(TEvents::TEvPing, Handle);
- sFunc(TEvents::TEvWakeup, PrintStats);
+ cFunc(TEvents::TEvWakeup::EventType, PrintStats);
}
++HandledEvents;
@@ -62,7 +62,7 @@ public:
STFUNC(StatePing) {
switch (ev->GetTypeRewrite()) {
hFunc(TEvents::TEvPong, Handle);
- sFunc(TEvents::TEvWakeup, PrintStats);
+ cFunc(TEvents::TEvWakeup::EventType, PrintStats);
}
++HandledEvents;
diff --git a/library/cpp/actors/examples/02_discovery/lookup.cpp b/library/cpp/actors/examples/02_discovery/lookup.cpp
index bcae477034..84e1fe5683 100644
--- a/library/cpp/actors/examples/02_discovery/lookup.cpp
+++ b/library/cpp/actors/examples/02_discovery/lookup.cpp
@@ -51,8 +51,8 @@ public:
STFUNC(StateWork) {
switch (ev->GetTypeRewrite()) {
hFunc(TEvExample::TEvReplicaInfo, Handle);
- sFunc(TEvents::TEvUndelivered, HandleUndelivered);
- sFunc(TEvInterconnect::TEvNodeDisconnected, HandleUndelivered);
+ cFunc(TEvents::TEvUndelivered::EventType, HandleUndelivered);
+ cFunc(TEvInterconnect::TEvNodeDisconnected::EventType, HandleUndelivered);
default:
break;
}
diff --git a/library/cpp/actors/examples/02_discovery/publish.cpp b/library/cpp/actors/examples/02_discovery/publish.cpp
index d923283e6b..75cee527e3 100644
--- a/library/cpp/actors/examples/02_discovery/publish.cpp
+++ b/library/cpp/actors/examples/02_discovery/publish.cpp
@@ -46,9 +46,9 @@ public:
STFUNC(StatePublish) {
switch (ev->GetTypeRewrite()) {
- sFunc(TEvents::TEvPoison, PassAway);
- sFunc(TEvents::TEvUndelivered, SomeSleep);
- sFunc(TEvInterconnect::TEvNodeDisconnected, SomeSleep);
+ cFunc(TEvents::TEvPoison::EventType, PassAway);
+ cFunc(TEvents::TEvUndelivered::EventType, SomeSleep);
+ cFunc(TEvInterconnect::TEvNodeDisconnected::EventType, SomeSleep);
default:
break;
}
@@ -56,8 +56,8 @@ public:
STFUNC(StateSleep) {
switch (ev->GetTypeRewrite()) {
- sFunc(TEvents::TEvPoison, PassAway);
- sFunc(TEvents::TEvWakeup, Bootstrap);
+ cFunc(TEvents::TEvPoison::EventType, PassAway);
+ cFunc(TEvents::TEvWakeup::EventType, Bootstrap);
default:
break;
}
@@ -98,7 +98,7 @@ public:
STFUNC(StateWork) {
switch (ev->GetTypeRewrite()) {
- sFunc(TEvents::TEvPoison, PassAway);
+ cFunc(TEvents::TEvPoison::EventType, PassAway);
default:
break;
}