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

Fix stray lock

Kishore Nallanefa73804ae1d
diff --git a/src/synonym_index.cpp b/src/synonym_index.cpp
index 537423d3..6f6e677c 100644
--- a/src/synonym_index.cpp
+++ b/src/synonym_index.cpp
@@ -115,7 +115,6 @@ Option<bool> SynonymIndex::add_synonym(const std::string & collection_name, cons
}
}
- write_lock.lock();
synonym_definitions[synonym.id] = synonym;
if(!synonym.root.empty()) {