Skip to content

Commit

Permalink
Update src/titiler_fetcher.mjs
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
dqunbp and coderabbitai[bot] authored Nov 12, 2024
1 parent c7b574e commit 38d07cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/titiler_fetcher.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function fetchTile(url) {
}
}

const FETCH_QUEUE_TTL = 1000 * 60 * 10; // 10 minutes
const FETCH_QUEUE_TTL = parseInt(process.env.TILE_FETCH_TTL_MS, 10) || 1000 * 60 * 10; // 10 minutes default

async function enqueueTileFetching(tileUrl, z, x, y) {
const url = tileUrl.replace("{z}", z).replace("{x}", x).replace("{y}", y);
Expand Down

0 comments on commit 38d07cd

Please sign in to comment.