Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[ISSUE #2205]🐛Fix stats_item.rs cargo clippy -- -D warnings error🍻 #2206

Merged
merged 1 commit into from
Jan 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rocketmq-common/src/common/stats/stats_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl StatsItem {
pub fn compute_stats_data(cs_list: Arc<Mutex<LinkedList<CallSnapshot>>>) -> StatsSnapshot {
let mut stats_snapshot = StatsSnapshot::new();
let cs_list = cs_list.lock();
if cs_list.len() > 0 {
if !cs_list.is_empty() {
let first = cs_list.front().unwrap();
let last = cs_list.back().unwrap();
let sum = last.get_value() - first.get_value();
Expand Down
Loading