From ac18ff17a98236ace91ce7fd17e24a4756f3afdd Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 17 Oct 2022 22:57:16 +0200 Subject: cache tiles --- src/viewer/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/viewer/mod.rs') diff --git a/src/viewer/mod.rs b/src/viewer/mod.rs index a411c29..f898c30 100644 --- a/src/viewer/mod.rs +++ b/src/viewer/mod.rs @@ -18,7 +18,7 @@ pub fn serve_http(dimension: Dimension, bind: SocketAddr) { .and(tiler.clone()) .and_then(|z, x, y, tiler: Arc| async move { Ok::<_, Infallible>(warp::reply::with_header( - tiler.get_tile(z, x, y), + tiler.get_tile(z, x, y), // TODO consider using tokio::spawn_blocking so we dont block the event loop "content-type", "image/png", )) -- cgit v1.2.3-70-g09d2