Skip to content

Commit

Permalink
Disable plot cache on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed Mar 1, 2024
1 parent ff33f95 commit 81b3064
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/backend/farmer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,15 @@ pub(super) async fn create_farmer(farmer_options: FarmerOptions) -> anyhow::Resu
.iter()
.map(|single_disk_farm| single_disk_farm.piece_cache())
.collect(),
single_disk_farms
.iter()
.map(|single_disk_farm| single_disk_farm.plot_cache())
.collect(),
// TODO: Find a way to enable plot cache on Windows
if cfg!(windows) {
Vec::new()
} else {
single_disk_farms
.iter()
.map(|single_disk_farm| single_disk_farm.plot_cache())
.collect()
},
)
.await,
);
Expand Down

0 comments on commit 81b3064

Please sign in to comment.