Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contextual-classifier/MLInference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ uint32_t MLInference::predict(
int pid,
const std::map<std::string, std::string> &raw_data,
std::string &cat) {
std::lock_guard<std::mutex> lock(predict_mutex_);
const std::lock_guard<std::mutex> lock(predict_mutex_);
syslog(LOG_DEBUG, "Starting prediction.");

std::string concatenated_text;
Expand Down
2 changes: 1 addition & 1 deletion modula/CoreModules/UrmSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ int32_t UrmSettings::serverOnlineStatus = false;
MetaConfigs UrmSettings::metaConfigs{};
TargetConfigs UrmSettings::targetConfigs{};

const std::string UrmSettings::mTargetConfDir = "/etc/urm/target/";
const std::string UrmSettings::mTargetConfDir = "/usr/lib/urm/";

const std::string UrmSettings::mCommonResourceFilePath =
"/etc/urm/common/ResourcesConfig.yaml";
Expand Down
8 changes: 4 additions & 4 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ if(BUILD_TESTS)
target_include_directories(RestuneTestUtils PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/Utils/Include)
install(TARGETS RestuneTestUtils DESTINATION ${CMAKE_INSTALL_LIBDIR})

add_library(RestunePlugin ${CMAKE_CURRENT_SOURCE_DIR}/Utils/Setup.cpp)
set_target_properties(RestunePlugin PROPERTIES VERSION 1.0.0 SOVERSION 1)
target_link_libraries(RestunePlugin UrmExtAPIs)
install(TARGETS RestunePlugin DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/urm/extensions)
add_library(UrmTestPlugin ${CMAKE_CURRENT_SOURCE_DIR}/Utils/Setup.cpp)
set_target_properties(UrmTestPlugin PROPERTIES VERSION 1.0.0 SOVERSION 1)
target_link_libraries(UrmTestPlugin UrmExtAPIs)
install(TARGETS UrmTestPlugin DESTINATION ${CMAKE_INSTALL_LIBDIR}/urm)

add_executable(
RestuneComponentTests
Expand Down
Loading