Skip to content

Commit

Permalink
Merge pull request #2619 from subspace/skip-unnecessary-read
Browse files Browse the repository at this point in the history
Remove unnecessary read
  • Loading branch information
nazar-pc authored Mar 18, 2024
2 parents 7db3256 + dc5449d commit f51e1a0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crates/subspace-farmer/src/single_disk_farm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2193,8 +2193,6 @@ where

let mut sector_bytes = vec![0u8; sector_size];

original_plot.read_exact_at(&mut sector_bytes, 0)?;

if plotted_sector_count == 0 {
thread_rng().fill_bytes(&mut sector_bytes);
original_plot.write_all_at(&sector_bytes, 0)?;
Expand Down

0 comments on commit f51e1a0

Please sign in to comment.