Skip to content

Commit 0e2fd90

Browse files
authored
fix: automatic map download (#532)
reverts the rename so everything works fine again
1 parent 03f1db4 commit 0e2fd90

File tree

1 file changed

+8
-8
lines changed
  • crates/hyperion/src/simulation

1 file changed

+8
-8
lines changed

crates/hyperion/src/simulation/util.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,27 +127,27 @@ pub async fn get_proof_of_concept_save() -> anyhow::Result<PathBuf> {
127127
.context("failed to create .hyperion")?;
128128
}
129129

130-
let new_york_dir = hyperion.join("ProofOfConcept");
130+
let new_york_dir = hyperion.join("NewYork");
131131

132132
if new_york_dir.exists() {
133-
info!("using cached ProofOfConcept load");
133+
info!("using cached NewYork load");
134134
} else {
135135
// download
136-
info!("downloading ProofOfConcept.tar.gz");
136+
info!("downloading NewYork.tar.gz");
137137

138-
// https://github.com/andrewgazelka/maps/raw/main/ProofOfConcept.tar.gz
139-
let url = "https://github.com/andrewgazelka/maps/raw/main/ProofOfConcept.tar.gz";
138+
// https://github.com/andrewgazelka/maps/raw/main/NewYork.tar.gz
139+
let url = "https://github.com/andrewgazelka/maps/raw/main/NewYork.tar.gz";
140140

141141
let response = reqwest::get(url)
142142
.await
143-
.context("failed to get ProofOfConcept.tar.gz")?;
143+
.context("failed to get NewYork.tar.gz")?;
144144

145145
let bytes = response
146146
.bytes()
147147
.await
148148
.context("failed to get response bytes")?;
149149

150-
info!("extracting ProofOfConcept.tar.gz");
150+
info!("extracting NewYork.tar.gz");
151151

152152
let decompressed = GzDecoder::new(bytes.as_ref());
153153

@@ -156,7 +156,7 @@ pub async fn get_proof_of_concept_save() -> anyhow::Result<PathBuf> {
156156

157157
archive
158158
.unpack(&hyperion)
159-
.context("failed to unpack ProofOfConcept.tar.gz")?;
159+
.context("failed to unpack NewYork.tar.gz")?;
160160
}
161161

162162
Ok(new_york_dir)

0 commit comments

Comments
 (0)