Skip to content

Commit

Permalink
Polish codes.
Browse files Browse the repository at this point in the history
Signed-off-by: lucasliang <[email protected]>
  • Loading branch information
LykxSassinator authored and ti-chi-bot committed Dec 9, 2024
1 parent fcde2a9 commit e176855
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions components/raftstore-v2/src/worker/pd/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,15 +448,13 @@ where
disk::set_disk_capacity(capacity);
disk::set_disk_used_size(capacity - available);
disk::set_disk_available_size(available);
(capacity, capacity - available, available)
}
#[cfg(not(any(test, feature = "testexport")))]
{
(
disk::get_disk_capacity(),
disk::get_disk_used_size(),
disk::get_disk_available_size(),
)
return (capacity, capacity - available, available);
}
#[allow(unreachable_code)]
(
disk::get_disk_capacity(),
disk::get_disk_used_size(),
disk::get_disk_available_size(),
)
}
}

0 comments on commit e176855

Please sign in to comment.