aboutsummaryrefslogtreecommitdiffhomepage
path: root/benchmark/bench_http_server_fast.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2021-07-04 05:58:54 +0300
committerlevlam <levlam@telegram.org>2021-07-04 05:58:54 +0300
commit40c5d47717a4c047957d6da3e6f7cf42fe702924 (patch)
tree93775787474e486893f3d30b4a901042bf1b1314 /benchmark/bench_http_server_fast.cpp
parentedfa5d1d982a8d499877eb9fafc5192a0baa2974 (diff)
Make inherited classes final if possible.
Diffstat (limited to 'benchmark/bench_http_server_fast.cpp')
-rw-r--r--benchmark/bench_http_server_fast.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmark/bench_http_server_fast.cpp b/benchmark/bench_http_server_fast.cpp
index 874582c43..1d2896346 100644
--- a/benchmark/bench_http_server_fast.cpp
+++ b/benchmark/bench_http_server_fast.cpp
@@ -22,7 +22,7 @@
namespace td {
-class HttpEchoConnection : public Actor {
+class HttpEchoConnection final : public Actor {
public:
explicit HttpEchoConnection(SocketFd fd) : fd_(std::move(fd)) {
}
@@ -85,7 +85,7 @@ class HttpEchoConnection : public Actor {
};
const int N = 8;
-class Server : public TcpListener::Callback {
+class Server final : public TcpListener::Callback {
public:
void start_up() final {
listener_ = create_actor<TcpListener>("Listener", 8082, ActorOwn<TcpListener::Callback>(actor_id(this)));