Skip to content

Commit

Permalink
Fix wiping shared data on farmer
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed Jul 29, 2023
1 parent b218bbf commit a13d4af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/subspace-farmer/src/bin/subspace-farmer/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,12 @@ async fn main() -> Result<()> {

match command.subcommand {
Subcommand::Wipe => {
// TODO: Delete this section once we don't have shared data anymore
info!("Wiping shared data");
fs::remove_file(base_path.join("known_addresses_db"))?;
fs::remove_file(base_path.join("piece_cache_db"))?;
fs::remove_file(base_path.join("providers_db"))?;

let disk_farms = if command.farm.is_empty() {
if !base_path.exists() {
info!("Done");
Expand Down

0 comments on commit a13d4af

Please sign in to comment.