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
C++ algoliadatastoreelasticsearchenterprise-searchfacetingfull-text-searchfuzzy-searchgeosearchin-memoryinstantsearchmerchandisingpineconesearchsearch-enginesemantic-searchsimilarity-searchsite-searchsynonymstypo-tolerancevector-search
Fix sleep call in batch indexer
ozanarmagan7e97b767a5d4
diff --git a/src/batched_indexer.cpp b/src/batched_indexer.cppindex 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<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);