Skip to content

Commit

Permalink
[release/v0.12.0-beta]: Revert "CLI - Print out config path when savi…
Browse files Browse the repository at this point in the history
…ng (#1673)"

This reverts commit cb3ca4d.
  • Loading branch information
bfops committed Oct 2, 2024
1 parent cb13f10 commit 683b5f6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/cli/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,6 @@ impl Config {

let config = toml::to_string_pretty(&self.home).unwrap();

eprintln!("Saving config to {}.", home_path.display());
// TODO: We currently have a race condition if multiple processes are modifying the config.
// If process X and process Y read the config, each make independent changes, and then save
// the config, the first writer will have its changes clobbered by the second writer.
Expand All @@ -829,7 +828,7 @@ impl Config {
// We should address this issue, but we currently don't expect it to arise very frequently
// (see https://github.com/clockworklabs/SpacetimeDB/pull/1341#issuecomment-2150857432).
if let Err(e) = atomic_write(&home_path, config) {
eprintln!("Could not save config file: {e}")
eprintln!("could not save config file: {e}")
}
}

Expand Down

0 comments on commit 683b5f6

Please sign in to comment.