|
|
@@ -5,7 +5,6 @@ use reqwest::Client;
|
|
5
|
5
|
use std::cmp::Ordering;
|
|
6
|
6
|
use std::cmp;
|
|
7
|
7
|
use std::collections::hash_set::HashSet;
|
|
8
|
|
-use std::error::Error;
|
|
9
|
8
|
use std::fs::File;
|
|
10
|
9
|
use std::io::Write;
|
|
11
|
10
|
use std::path::{Path, PathBuf};
|
|
|
@@ -140,7 +139,7 @@ impl TileLoader {
|
|
140
|
139
|
}
|
|
141
|
140
|
if let Err(e) = remote_request_tx.send(RemoteLoaderMessage::PopQueue) {
|
|
142
|
141
|
//TODO what now? restart worker?
|
|
143
|
|
- error!("remote worker terminated, {}", e.description());
|
|
|
142
|
+ error!("remote worker terminated, {}", e);
|
|
144
|
143
|
}
|
|
145
|
144
|
}
|
|
146
|
145
|
} else if result_tx.send((request.tile, None)).is_err() {
|
|
|
@@ -193,7 +192,7 @@ impl TileLoader {
|
|
193
|
192
|
|
|
194
|
193
|
if request.write_to_file {
|
|
195
|
194
|
if let Err(e) = Self::write_to_file(&request.path, &buf) {
|
|
196
|
|
- warn!("could not write file {}, {}", request.path.display(), e.description());
|
|
|
195
|
+ warn!("could not write file {}, {}", request.path.display(), e);
|
|
197
|
196
|
}
|
|
198
|
197
|
}
|
|
199
|
198
|
|
|
|
@@ -282,7 +281,7 @@ impl TileLoader {
|
|
282
|
281
|
if write_to_file {
|
|
283
|
282
|
let path = source.local_tile_path(tile);
|
|
284
|
283
|
if let Err(e) = Self::write_to_file(&path, &buf) {
|
|
285
|
|
- warn!("could not write file {}, {}", &path.display(), e.description());
|
|
|
284
|
+ warn!("could not write file {}, {}", &path.display(), e);
|
|
286
|
285
|
}
|
|
287
|
286
|
}
|
|
288
|
287
|
debug!("sync ok from network {:?}", tile);
|