Skip to content

Commit

Permalink
fix error in last release
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Crocker committed Nov 13, 2018
1 parent 0621200 commit 18a9061
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions lib/cacher.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module.exports = function(opts) {
pipe.on("data", function processLine(line) {
if (line.length) {
requestCount++;
processRequest(
processRequestMessage(
line,
function() {
debug("Request finished " + line);
Expand Down Expand Up @@ -149,7 +149,7 @@ module.exports = function(opts) {
return errorC(err);
}
sinks[sourceName] = dest;
processRequest(tileComponents, source, dest, success, errorC);
processRequest(tileComponents, source, dest, sourceName, success, errorC);
});
});
} else {
Expand All @@ -158,11 +158,11 @@ module.exports = function(opts) {
return errorC(null);
}
} else {
processRequest(tileComponents, source, dest, success, errorC);
processRequest(tileComponents, source, dest, sourceName, success, errorC);
}
}

function processRequest(tileComponents, source, dest, success, errorC) {
function processRequest(tileComponents, source, dest, sourceName, success, errorC) {
var z = parseInt(tileComponents[0]);
var startX, endX, startY, endY;
var xComponents = tileComponents[1].split("-");
Expand All @@ -181,7 +181,7 @@ module.exports = function(opts) {
endY = parseInt(yComponents[1]);
}

debug("opening source " + config[sourceName]["destination"] + " for writing");
debug("opening source " + destination + " for writing");
dest.startWriting(function(err) {
if (err) {
console.log(err);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tile-squirrel",
"version": "1.6.0",
"version": "1.6.1",
"description": "Tile Squirrel reads from a rabbit queue and cache tiles from a tilelive source to a tilelive sink",
"main": "lib/cacher.js",
"bin": "bin/squirrel.js",
Expand Down

0 comments on commit 18a9061

Please sign in to comment.