Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 committed Sep 11, 2023
1 parent 6f02743 commit 698a534
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/replica/prepare_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ class prepare_list : public mutation_cache, private replica_base
template <>
struct fmt::formatter<::dsn::replication::commit_type> : ostream_formatter
{
};
};
2 changes: 1 addition & 1 deletion src/utils/error_code.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,4 @@ DEFINE_ERR_CODE(ERR_DISK_IO_ERROR)
template <>
struct fmt::formatter<::dsn::error_code> : ostream_formatter
{
};
};
7 changes: 4 additions & 3 deletions src/utils/metrics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -617,9 +617,10 @@ void metric_timer::on_timer(const boost::system::error_code &ec)
} while (0)

if (dsn_unlikely(!!ec)) {
CHECK(ec.value() == boost::system::errc::operation_canceled,
"failed to exec on_timer with an error that cannot be handled: {}",
ec.message());
CHECK_EQ_MSG(static_cast<int>(boost::system::errc::operation_canceled),
ec.value(),
"failed to exec on_timer with an error that cannot be handled: {}",
ec.message());

// Cancel can only be launched by close().
auto expected_state = state::kClosing;
Expand Down
2 changes: 1 addition & 1 deletion src/zookeeper/lock_struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,4 @@ class lock_struct : public ref_counter
template <>
struct fmt::formatter<::dsn::dist::lock_state> : ostream_formatter
{
};
};

0 comments on commit 698a534

Please sign in to comment.