aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authorKirill Grachev <kirill.grachoff@gmail.com>2023-05-05 16:43:01 +0000
committerkruall <kruall@ydb.tech>2023-05-05 19:43:01 +0300
commitcffea5310713f2f5cfc5bd130e90aa49efc6d6ee (patch)
tree03bcb4fa7e74fe35c2462057cde589de03c57d82 /library/cpp
parentbb9f87983378fe1f73272537f39246e0ac4f545d (diff)
downloadydb-cffea5310713f2f5cfc5bd130e90aa49efc6d6ee.tar.gz
"Update old actors examples"
"Update old actors examples" Pull Request resolved: #174
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 8075d255fd8..c9223f78ef3 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);
- cFunc(TEvents::TEvWakeup::EventType, PrintStats);
+ sFunc(TEvents::TEvWakeup, PrintStats);
}
++HandledEvents;
@@ -62,7 +62,7 @@ public:
STFUNC(StatePing) {
switch (ev->GetTypeRewrite()) {
hFunc(TEvents::TEvPong, Handle);
- cFunc(TEvents::TEvWakeup::EventType, PrintStats);
+ sFunc(TEvents::TEvWakeup, PrintStats);
}
++HandledEvents;
diff --git a/library/cpp/actors/examples/02_discovery/lookup.cpp b/library/cpp/actors/examples/02_discovery/lookup.cpp
index 84e1fe56834..bcae477034b 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);
- cFunc(TEvents::TEvUndelivered::EventType, HandleUndelivered);
- cFunc(TEvInterconnect::TEvNodeDisconnected::EventType, HandleUndelivered);
+ sFunc(TEvents::TEvUndelivered, HandleUndelivered);
+ sFunc(TEvInterconnect::TEvNodeDisconnected, HandleUndelivered);
default:
break;
}
diff --git a/library/cpp/actors/examples/02_discovery/publish.cpp b/library/cpp/actors/examples/02_discovery/publish.cpp
index 75cee527e30..d923283e6b5 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()) {
- cFunc(TEvents::TEvPoison::EventType, PassAway);
- cFunc(TEvents::TEvUndelivered::EventType, SomeSleep);
- cFunc(TEvInterconnect::TEvNodeDisconnected::EventType, SomeSleep);
+ sFunc(TEvents::TEvPoison, PassAway);
+ sFunc(TEvents::TEvUndelivered, SomeSleep);
+ sFunc(TEvInterconnect::TEvNodeDisconnected, SomeSleep);
default:
break;
}
@@ -56,8 +56,8 @@ public:
STFUNC(StateSleep) {
switch (ev->GetTypeRewrite()) {
- cFunc(TEvents::TEvPoison::EventType, PassAway);
- cFunc(TEvents::TEvWakeup::EventType, Bootstrap);
+ sFunc(TEvents::TEvPoison, PassAway);
+ sFunc(TEvents::TEvWakeup, Bootstrap);
default:
break;
}
@@ -98,7 +98,7 @@ public:
STFUNC(StateWork) {
switch (ev->GetTypeRewrite()) {
- cFunc(TEvents::TEvPoison::EventType, PassAway);
+ sFunc(TEvents::TEvPoison, PassAway);
default:
break;
}