Skip to content

Commit

Permalink
Removed useless log buffer length in main SpanLog buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuri6037 committed Mar 24, 2024
1 parent 325380c commit 682fcf7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/profiler/network_types/log.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl<'a, V: FieldValue> Field<'a, V> {
}

pub fn write_into<W: Log>(self, log: &mut W) {
if self.name != "message"{
{
//rust is too stupid to understand that formatter is not after write_str
let mut formatter = Formatter::new(log);
let _ = formatter.write_str(self.name);
Expand Down
1 change: 0 additions & 1 deletion src/profiler/thread/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ impl SpanStore {
data.row_count += 1;
let buffer = &mut data.runs_file;
log.write_finish();
let _ = buffer.write_le(log.as_bytes().len() as u16);
let _ = buffer.write_all(log.as_bytes());
}
let now = std::time::Instant::now();
Expand Down

0 comments on commit 682fcf7

Please sign in to comment.