spraed out tileserver timeouts
This commit is contained in:
parent
8ccbcddb59
commit
4a88523eab
|
@ -165,12 +165,17 @@ class CanvasUpdater {
|
||||||
logger.info(
|
logger.info(
|
||||||
`Tiling: Set interval for zoomlevel ${c} update to ${timeout / 1000}`,
|
`Tiling: Set interval for zoomlevel ${c} update to ${timeout / 1000}`,
|
||||||
);
|
);
|
||||||
setInterval(this.updateZoomlevelTiles, timeout, c);
|
setTimeout(() => {
|
||||||
|
setInterval(this.updateZoomlevelTiles, timeout, c);
|
||||||
|
}, Math.floor(Math.random() * timeout));
|
||||||
}
|
}
|
||||||
if (this.maxTiledZoom === 0) {
|
if (this.maxTiledZoom === 0) {
|
||||||
// in the case of canvasSize == 256
|
// in the case of canvasSize == 256
|
||||||
this.TileLoadingQueues.push([]);
|
this.TileLoadingQueues.push([]);
|
||||||
setInterval(this.updateZoomlevelTiles, 5 * 60 * 1000, 0);
|
const timeout = 5 * 60 * 1000;
|
||||||
|
setTimeout(() => {
|
||||||
|
setInterval(this.updateZoomlevelTiles, timeout, 0);
|
||||||
|
}, Math.floor(Math.random() * timeout));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user