Fix sleep call in batch indexer

This commit is contained in:
ozanarmagan 2023-06-20 01:36:52 +03:00
parent 99be1f69df
commit 7e97b767a5

View File

@ -123,7 +123,7 @@ std::string BatchedIndexer::get_collection_name(const std::shared_ptr<http_req>&
void BatchedIndexer::run() {
// sleep this thread for 5 seconds
sleep(10);
std::this_thread::sleep_for(std::chrono::seconds(5));
LOG(INFO) << "Starting batch indexer with " << num_threads << " threads.";
ThreadPool* thread_pool = new ThreadPool(num_threads);