Skip to content

Commit

Permalink
dont use disk queue for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
leeliu committed Feb 2, 2018
1 parent 7bbd855 commit f8ff7ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/linebuffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ var debug = require('debug')('logdna:lib:linebuffer');
var log = require('./log');
var config = require('./config');
var zlib = require('zlib');
var os = require('os');
var request = require('request');
var Agent = require('agentkeepalive');
var Queue = require('file-queue').Queue;
Expand Down Expand Up @@ -165,7 +166,7 @@ module.exports.setSocket = function(sock) {
exports.resetStats();
exclude_regex = config.exclude_regex && new RegExp(config.exclude_regex);

if (config.HTTP_RETRY) {
if (config.HTTP_RETRY && os.platform() !== 'win32') {
queue = new Queue(config.FILEQUEUE_PATH, function(err) {
if (err) { throw err; }
queue.length(function(err, length) {
Expand Down

0 comments on commit f8ff7ec

Please sign in to comment.