mirror of
https://github.com/maplibre/martin.git
synced 2024-12-19 21:01:45 +03:00
Minor lints (#1412)
This commit is contained in:
parent
d4465426d8
commit
7446f54bc1
@ -26,7 +26,6 @@ keep_alive: 75
|
||||
# The socket address to bind [default: 0.0.0.0:3000]
|
||||
listen_addresses: '0.0.0.0:3000'
|
||||
|
||||
|
||||
# Set TileJSON URL path prefix, ignoring X-Rewrite-URL header. Must begin with a `/`
|
||||
base_path: /tiles
|
||||
|
||||
|
@ -133,7 +133,9 @@ fn start_processor_threads<S: Send + 'static, T: Send + 'static, P: BinDiffer<S,
|
||||
tx_ins: Sender<T>,
|
||||
has_errors: Arc<AtomicBool>,
|
||||
) {
|
||||
(0..num_cpus::get()).for_each(|_| {
|
||||
let cpus = num_cpus::get();
|
||||
info!("Processing bindiff patches using {cpus} threads...");
|
||||
(0..cpus).for_each(|_| {
|
||||
let rx_wrk = rx_wrk.clone();
|
||||
let tx_ins = tx_ins.clone();
|
||||
let has_errors = has_errors.clone();
|
||||
|
@ -470,11 +470,15 @@ if [[ "$MBTILES_BIN" != "-" ]]; then
|
||||
"$TEST_TEMP_DIR/world_cities_bindiff.mbtiles" \
|
||||
--patch-type bin-diff-gz \
|
||||
2>&1 | tee "$TEST_OUT_DIR/copy_bindiff.txt"
|
||||
test_log_has_str "$TEST_OUT_DIR/copy_bindiff.txt" '.*Processing bindiff patches using .* threads...'
|
||||
|
||||
$MBTILES_BIN copy \
|
||||
./tests/fixtures/mbtiles/world_cities.mbtiles \
|
||||
--apply-patch "$TEST_TEMP_DIR/world_cities_bindiff.mbtiles" \
|
||||
"$TEST_TEMP_DIR/world_cities_modified2.mbtiles" \
|
||||
2>&1 | tee "$TEST_OUT_DIR/copy_bindiff2.txt"
|
||||
test_log_has_str "$TEST_OUT_DIR/copy_bindiff2.txt" '.*Processing bindiff patches using .* threads...'
|
||||
|
||||
# Ensure that world_cities_modified and world_cities_modified2 are identical (regular diff is empty)
|
||||
$MBTILES_BIN copy \
|
||||
./tests/fixtures/mbtiles/world_cities_modified.mbtiles \
|
||||
|
Loading…
Reference in New Issue
Block a user