service/kv: fix wrong metrics of txn_heart_beat
@@ -1171,7 +1171,7 @@ fn handle_batch_commands_request<E: Engine, L: LockMgr>(
}
Some(batch_commands_request::request::Cmd::TxnHeartBeat(req)) => {
let timer = GRPC_MSG_HISTOGRAM_VEC
- .kv_check_txn_status
+ .kv_txn_heart_beat
.start_coarse_timer();
let resp = future_txn_heart_beat(&storage, req)
.map(oneof!(batch_commands_response::response::Cmd::TxnHeartBeat))
