Skip to content

Commit

Permalink
remove unnecessary seek
Browse files Browse the repository at this point in the history
  • Loading branch information
HaoranYi committed Jul 11, 2024
1 parent a81da36 commit 1858a19
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions accounts-db/src/append_vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1929,7 +1929,6 @@ pub mod tests {
.append(true)
.open(&temp_file.path)
.unwrap();
f.seek(SeekFrom::End(0)).unwrap();
f.write_all(&[0xFF]).unwrap();
}
assert_scan(total_stored_size + 1);
Expand All @@ -1942,7 +1941,6 @@ pub mod tests {
.append(true)
.open(&temp_file.path)
.unwrap();
f.seek(SeekFrom::End(0)).unwrap();
f.write_all(&[0xFF; SIZE]).unwrap();
}
assert_scan(total_stored_size + SIZE + 1);
Expand Down Expand Up @@ -2007,7 +2005,6 @@ pub mod tests {
.append(true)
.open(&temp_file.path)
.unwrap();
f.seek(SeekFrom::End(0)).unwrap();
f.write_all(&[0xFF]).unwrap();
}
assert_scan(total_stored_size + 1);
Expand All @@ -2020,7 +2017,6 @@ pub mod tests {
.append(true)
.open(&temp_file.path)
.unwrap();
f.seek(SeekFrom::End(0)).unwrap();
f.write_all(&[0xFF; SIZE]).unwrap();
}
assert_scan(total_stored_size + SIZE + 1);
Expand Down

0 comments on commit 1858a19

Please sign in to comment.