Skip to content

Commit

Permalink
fix clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
empiredan committed Nov 28, 2024
1 parent 0c10d96 commit f2f7292
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 3 additions & 5 deletions src/meta/duplication/duplication_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ DSN_DEFINE_uint64(replication,

DSN_DEFINE_uint64(replication,
dup_progress_min_report_period_ms,
5 * 60 * 1000,
static_cast<uint64_t>(5) * 60 * 1000,
"The minimum period in milliseconds that progress of duplication is reported");

namespace dsn {
namespace replication {
namespace dsn::replication {

/*extern*/ void json_encode(dsn::json::JsonWriter &out, const duplication_status::type &s)
{
Expand Down Expand Up @@ -296,5 +295,4 @@ void duplication_info::append_if_valid_for_query(
ent.__isset.progress = false;
}

} // namespace replication
} // namespace dsn
} // namespace dsn::replication
6 changes: 2 additions & 4 deletions src/meta/test/duplication_info_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@

DSN_DECLARE_uint64(dup_progress_min_update_period_ms);

namespace dsn {
namespace replication {
namespace dsn::replication {

class duplication_info_test : public testing::Test
{
Expand Down Expand Up @@ -359,5 +358,4 @@ TEST_F(duplication_info_test, is_valid)
ASSERT_TRUE(dup.is_invalid_status());
}

} // namespace replication
} // namespace dsn
} // namespace dsn::replication

0 comments on commit f2f7292

Please sign in to comment.