Skip to content

Commit

Permalink
Merge pull request #146 from HyperInspire/dev/patch-7
Browse files Browse the repository at this point in the history
Bugfix: DB path
  • Loading branch information
tunmx authored Jan 15, 2025
2 parents 6fb7afe + c64762d commit 3be1ef2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/inspireface/c_api/inspireface.cc
Original file line number Diff line number Diff line change
Expand Up @@ -386,11 +386,12 @@ HResult HFFeatureHubDataEnable(HFFeatureHubConfiguration configuration) {
if (configuration.enablePersistence) {
if (configuration.persistenceDbPath == nullptr) {
param.persistence_db_path = std::string("");
} else {
param.persistence_db_path = std::string(configuration.persistenceDbPath);
}
} else {
param.persistence_db_path = std::string(""); // Empty string for in-memory mode
}

param.enable_persistence = configuration.enablePersistence;
param.recognition_threshold = configuration.searchThreshold;
param.search_mode = (inspire::SearchMode)configuration.searchMode;
Expand Down

0 comments on commit 3be1ef2

Please sign in to comment.