Skip to content

Commit

Permalink
Remove the unused vector inside worker.cc (#1915)
Browse files Browse the repository at this point in the history
  • Loading branch information
kay011 authored Dec 3, 2023
1 parent 04cf217 commit efc720d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/server/server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,6 @@ void Server::AdjustWorkerThreads() {
}

void Server::increaseWorkerThreads(size_t delta) {
std::vector<std::unique_ptr<WorkerThread>> new_threads;
for (size_t i = 0; i < delta; i++) {
auto worker = std::make_unique<Worker>(this, config_);
auto worker_thread = std::make_unique<WorkerThread>(std::move(worker));
Expand Down

0 comments on commit efc720d

Please sign in to comment.