diff --git a/src/batched_indexer.cpp b/src/batched_indexer.cpp index 530963ea..ee4f36a7 100644 --- a/src/batched_indexer.cpp +++ b/src/batched_indexer.cpp @@ -123,7 +123,7 @@ std::string BatchedIndexer::get_collection_name(const std::shared_ptr& 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);