mirror of
https://github.com/typesense/typesense.git
synced 2025-05-19 21:22:25 +08:00
Fix sleep call in batch indexer
This commit is contained in:
parent
99be1f69df
commit
7e97b767a5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user