Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
Barthelemy committed Oct 22, 2024
1 parent 82cad99 commit 8581b15
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Framework/src/PostProcessingConfig.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ PostProcessingConfig::PostProcessingConfig(const std::string& id, const boost::p
detectorName = config.get<std::string>("qc.postprocessing." + id + ".detectorName", "MISC");
consulUrl = config.get<std::string>("qc.config.consul.url", "");
conditionUrl = config.get<std::string>("qc.config.conditionDB.url", "");
std::unordered_map<std::string, std::string> dbConfig {
{"implementation", config.get<std::string>("qc.config.database.implementation")},
{"host", config.get<std::string>("qc.config.database.host")}
std::unordered_map<std::string, std::string> dbConfig{
{ "implementation", config.get<std::string>("qc.config.database.implementation") },
{ "host", config.get<std::string>("qc.config.database.host") }
};
database = dbConfig;

Expand Down
8 changes: 5 additions & 3 deletions Framework/src/UserCodeInterface.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,19 @@ void UserCodeInterface::setCustomParameters(const CustomParameters& parameters)
configure();
}

const std::string& UserCodeInterface::getName() const {
const std::string& UserCodeInterface::getName() const
{
return mName;
}

void UserCodeInterface::setName(const std::string& name) {
void UserCodeInterface::setName(const std::string& name)
{
mName = name;
}

void UserCodeInterface::setDatabase(std::unordered_map<std::string, std::string> dbConfig)
{
if(dbConfig.count("implementation") == 0 || dbConfig.count("host") == 0) {
if (dbConfig.count("implementation") == 0 || dbConfig.count("host") == 0) {
ILOG(Error, Devel) << "dbConfig is incomplete, we don't build the user code database instance" << ENDM;
throw std::invalid_argument("Cannot set database in UserCodeInterface");
}
Expand Down
5 changes: 2 additions & 3 deletions Framework/test/testCheck.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ TEST_CASE("test_check_postprocessing")

TEST_CASE("test_check_activity")
{
Check check({ "QcSkeleton",
Check check({ "QcSkeleton",
"o2::quality_control_modules::skeleton::SkeletonCheck",
"TST",
"",
Expand All @@ -154,8 +154,7 @@ TEST_CASE("test_check_activity")
"test",
UpdatePolicyType::OnAny,
{},
true }
);
true });

std::map<std::string, std::shared_ptr<MonitorObject>> moMap{
{ "abcTask/test1", dummyMO("test1") },
Expand Down

0 comments on commit 8581b15

Please sign in to comment.