Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use pause-stream instead of gate

  • Loading branch information...
commit 7b8be515b2d096088a5e9289e731c42dd7a713ad 1 parent 52716f4
@dominictarr authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 endpoints.js
View
4 endpoints.js
@@ -22,7 +22,7 @@ module.exports = function (basedir, exports) {
var _key = hash(key)
var dir = _key.substring(0, 2)
var file = key
- var stream = es.gate(true), inner
+ var stream = es.pause().pause(), inner
mkdirP(join(basedir, dir), function (err) {
if(err)
return stream.emit('error', err)
@@ -32,7 +32,7 @@ module.exports = function (basedir, exports) {
stream.emit('close')
})
)
- stream.open()
+ stream.resume()
})
return stream
}
Please sign in to comment.
Something went wrong with that request. Please try again.