Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Remove unnecessary sleep

ozanarmagan5bed247aea99
diff --git a/src/batched_indexer.cpp b/src/batched_indexer.cpp
index ee4f36a7..93a19382 100644
--- a/src/batched_indexer.cpp
+++ b/src/batched_indexer.cpp
@@ -121,10 +121,6 @@ std::string BatchedIndexer::get_collection_name(const std::shared_ptr<http_req>&
}
void BatchedIndexer::run() {
-
- // sleep this thread for 5 seconds
- 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);
skip_index_iter = meta_store->scan(SKIP_INDICES_PREFIX, skip_index_iter_upper_bound);