Skip to content

Commit

Permalink
added missing 'var' to local variable declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
mef committed Jan 25, 2013
1 parent d42e618 commit 572e45a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tuiter.js
Expand Up @@ -124,7 +124,7 @@ var APIRequest = function(endpoint, params, callback) {
req.end(function(res){
debug('data received for %s', endpoint.resource);
if (res.statusCode == 429) {
sleep_duration = (res.header['x-rate-limit-reset']*1000 - new Date()) + 7000;
var sleep_duration = (res.header['x-rate-limit-reset']*1000 - new Date()) + 7000;
debug('rate limit reached, sleeping during', Math.ceil(sleep_duration/60000), 'minutes');
setTimeout(function() {
debug('rate limit reset, resuming extraction...');
Expand Down

0 comments on commit 572e45a

Please sign in to comment.