Skip to content

Commit

Permalink
clean worker
Browse files Browse the repository at this point in the history
  • Loading branch information
ZEDIUM-Off committed Jun 25, 2024
1 parent c2c1191 commit 519e58b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/Worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ Worker::Worker()
_shouldStop(false)
{
_log.info("Worker constructor called");
_setupEpoll();
}

Worker::~Worker() {
Expand All @@ -43,15 +42,6 @@ void Worker::stop() {
_shouldStop = true;
}

void Worker::_setupEpoll() {
_epollSocket = epoll_create1(0);
if (_epollSocket <= 0) {
_log.error(std::string("WORKER: Failed \"epoll_create1\": ") +
strerror(errno));
exit(EXIT_FAILURE);
}
}

std::vector<VirtualServer*> Worker::_setupAssociateVirtualServer(
const ListenConfig& listenConfig) {
std::vector<VirtualServer*> virtualServers;
Expand Down

0 comments on commit 519e58b

Please sign in to comment.