Skip to content

Commit

Permalink
[src] Add destructor for ReactorManager
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigma711 committed Aug 11, 2023
1 parent 4fc9587 commit 6f83460
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/reactor_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ ServerReactorManager::ServerReactorManager(EventManagers* event_managers,
}
balancer_ = std::make_unique<Balancer>(event_managers_, 0);
}
ServerReactorManager::~ServerReactorManager() {}

void ServerReactorManager::Loop() {
size_t io_thread_amount = (*event_managers_).size();
Expand Down
1 change: 1 addition & 0 deletions src/reactor_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class ServerReactorManager : NonCopyableMovable {
const NetAddress& listen_address,
size_t io_thread_amount = 6,
bool should_reuse_port = false);
~ServerReactorManager();

void SetConnectionCallback(const NormalCallback& cb) {
ConnectionCallback_ = cb;
Expand Down

0 comments on commit 6f83460

Please sign in to comment.