mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-18 18:46:17 +00:00
fix: address correctness, safety, and concurrency issues (#2327)
Co-authored-by: heihutu <heihutu@gmail.com> Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
@@ -187,7 +187,6 @@ pub(crate) fn get_buffer_size_opt_in(file_size: i64) -> usize {
|
||||
};
|
||||
|
||||
// Optional performance metrics collection for monitoring and optimization
|
||||
#[cfg(feature = "metrics")]
|
||||
{
|
||||
use metrics::histogram;
|
||||
histogram!("rustfs.buffer.size.bytes").record(buffer_size as f64);
|
||||
|
||||
Reference in New Issue
Block a user