diff options
| author | levlam <levlam@telegram.org> | 2021-07-03 23:51:36 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2021-07-03 23:51:36 +0300 |
| commit | edfa5d1d982a8d499877eb9fafc5192a0baa2974 (patch) | |
| tree | 0badfea5d1ec8da265586cb737aaf3f1549d8b5c /tdactor/example | |
| parent | 3ead565d675c0317abcfdb70b28eac3bb5659425 (diff) | |
Use final instead of override.
Diffstat (limited to 'tdactor/example')
| -rw-r--r-- | tdactor/example/example.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tdactor/example/example.cpp b/tdactor/example/example.cpp index 58ddce34c..a58ad96ab 100644 --- a/tdactor/example/example.cpp +++ b/tdactor/example/example.cpp @@ -19,14 +19,14 @@ class Worker : public td::Actor { class MainActor : public td::Actor { public: - void start_up() override { + void start_up() final { LOG(ERROR) << "Start up"; set_timeout_in(10); worker_ = td::create_actor_on_scheduler<Worker>("Worker", 1); send_closure(worker_, &Worker::ping, 123); } - void timeout_expired() override { + void timeout_expired() final { LOG(ERROR) << "Timeout expired"; td::Scheduler::instance()->finish(); } |
