Skip to content

Commit 6c4ed71

Browse files
committed
fix comments
1 parent 4295a34 commit 6c4ed71

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/utils/metrics.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -968,8 +968,7 @@ class metric : public ref_counter
968968
explicit metric(const metric_prototype *prototype);
969969
virtual ~metric() = default;
970970

971-
// Encode a metric field specified by `field_name` as json format. However, once the field
972-
// are not chosen by `filters`, this function will do nothing.
971+
// Encode a metric field specified by `field_name` with `value` as json format.
973972
template <typename T>
974973
static inline void
975974
encode(metric_json_writer &writer, const std::string &field_name, const T &value)
@@ -978,8 +977,8 @@ class metric : public ref_counter
978977
json::json_encode(writer, value);
979978
}
980979

981-
// Encode a metric field specified by `field_name` as json format. However, once the field
982-
// are not chosen by `filters`, this function will do nothing.
980+
// Encode a metric field specified by `field_name` with `value` as json format. However,
981+
// once the field are not chosen by `filters`, this function will do nothing.
983982
template <typename T>
984983
static inline void encode(metric_json_writer &writer,
985984
const std::string &field_name,

0 commit comments

Comments
 (0)