Skip to content

Commit

Permalink
FIX better naming for tile cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlurie committed Dec 5, 2023
1 parent 967ece4 commit 9ad4d36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ClientConfig {
/**
* Number of tiles to keep in cache
*/
public cacheSize: number = 200;
public tileCacheSize: number = 200;

public bufferToPixelData: BufferToPixelDataFunction | null;

Expand Down
2 changes: 1 addition & 1 deletion src/tiledecoding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ let tileCache = null;
*/
export function getTileCache(): QuickLRU<string, PixelData> {
if (!tileCache) {
tileCache = new QuickLRU({ maxSize: config.cacheSize });
tileCache = new QuickLRU({ maxSize: config.tileCacheSize });
}
return tileCache;
}
Expand Down

0 comments on commit 9ad4d36

Please sign in to comment.