Skip to content

Commit

Permalink
Update dependencies, tests, connection limit
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Oct 1, 2024
1 parent 29b4adc commit 1c0c787
Show file tree
Hide file tree
Showing 8 changed files with 176 additions and 188 deletions.
325 changes: 155 additions & 170 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ md5 = "0.7.0"
moka = { version = "0.12", features = ["future"] }
num_cpus = "1"
pbf_font_tools = { version = "2.5.1", features = ["freetype"] }
pmtiles = { version = "0.10", features = ["http-async", "mmap-async-tokio", "tilejson", "reqwest-rustls-tls-native-roots"] }
pmtiles = { version = "0.11", features = ["http-async", "mmap-async-tokio", "tilejson", "reqwest-rustls-tls-native-roots"] }
postgis = "0.9"
postgres = { version = "0.19", features = ["with-time-0_3", "with-uuid-1", "with-serde_json-1"] }
postgres-protocol = "0.6"
pprof = { version = "0.13", features = ["flamegraph", "criterion"] }
pretty_assertions = "1"
regex = "1"
rstest = "0.22"
rstest = "0.23"
rustls = "0.23.12"
# ring feature does not require NASM windows executable, but works slower
#rustls = { version = "0.23", default-features = false, features = ["logging", "std", "tls12", "ring"] }
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ services:
restart: unless-stopped
ports:
- '${PGPORT:-5411}:5432'
command:
- '-c'
- 'max_connections=200'
environment:
# POSTGRES_* variables are used by the postgis/postgres image
# PG_* variables are used by psql
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ docs:
coverage FORMAT='html': (cargo-install "grcov")
#!/usr/bin/env bash
set -euo pipefail
if ! rustup component list | grep llvm-tools-preview &> /dev/null; then \
if ! rustup component list | grep llvm-tools-preview > /dev/null; then \
echo "llvm-tools-preview could not be found. Installing..." ;\
rustup component add llvm-tools-preview ;\
fi
Expand Down
4 changes: 2 additions & 2 deletions tests/expected/auto/mb_jpg.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"http://localhost:3111/geography-class-jpg/{z}/{x}/{y}"
],
"bounds": [
-180,
-180.0,
-85.0511,
180,
180.0,
85.0511
],
"description": "One of the example maps that comes with TileMill - a bright & colorful world map that blends retro and high-tech with its folded paper texture and interactive flag tooltips. ",
Expand Down
8 changes: 4 additions & 4 deletions tests/expected/auto/mb_png.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"http://localhost:3111/geography-class-png/{z}/{x}/{y}"
],
"bounds": [
-180,
-180.0,
-85.0511,
180,
180.0,
85.0511
],
"center": [
0,
20,
0.0,
20.0,
0
],
"description": "One of the example maps that comes with TileMill - a bright & colorful world map that blends retro and high-tech with its folded paper texture and interactive flag tooltips. ",
Expand Down
12 changes: 6 additions & 6 deletions tests/expected/auto/pmt.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
"http://localhost:3111/stamen_toner__raster_CC-BY-ODbL_z3/{z}/{x}/{y}"
],
"bounds": [
-180,
-85,
180,
85
-180.0,
-85.0,
180.0,
85.0
],
"center": [
0,
0,
0.0,
0.0,
0
],
"maxzoom": 3,
Expand Down
6 changes: 3 additions & 3 deletions tests/expected/auto/table_source.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
}
],
"bounds": [
-2,
-1,
-2.0,
-1.0,
142.84131509869133,
45
45.0
],
"name": "table_source",
"foo": {
Expand Down

0 comments on commit 1c0c787

Please sign in to comment.