Skip to content

Commit

Permalink
Remove file lock lookup for now. 200 concurrent requests is a safe
Browse files Browse the repository at this point in the history
number and we can look to change this in the future
  • Loading branch information
TJ Simons committed Mar 27, 2018
1 parent b163b89 commit 559fc0f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const { isWebUri } = require(`valid-url`)
const Queue = require(`better-queue`)

const { createFileNode } = require(`./create-file-node`)
const getMaxFileLock = require(`./get-max-file-lock`)
const cacheId = url => `create-remote-file-node-${url}`

/********************
Expand Down Expand Up @@ -96,12 +95,6 @@ const queue = new Queue(pushToQueue, {
concurrent: 200,
})

// Detetmine the max file descriptors on the users machine
// Then set the batch size to be 3/4 of that becuase the user
// will most likely have files open already
getMaxFileLock().then((max) => {
queue.concurrent = max * .75
})

/**
* @callback {Queue~queueCallback}
Expand Down
20 changes: 0 additions & 20 deletions packages/gatsby-source-filesystem/src/get-max-file-lock.js

This file was deleted.

0 comments on commit 559fc0f

Please sign in to comment.