removed the buffering from update merger, shouldn't be needed in node 0.10

This commit is contained in:
Henry Oswald 2014-04-08 20:52:02 +01:00
parent c0780f5a67
commit 71af89902d
2 changed files with 1 additions and 3 deletions

View file

@ -94,8 +94,6 @@ module.exports =
logger.log project_id:project_id, file_id:file_id, dumpPath:dumpPath, "tpds update write stream finished"
callback null, dumpPath
if stream.emitBufferedData?
stream.emitBufferedData()
stream.resume()

View file

@ -142,7 +142,7 @@ module.exports = class Router
app.post '/project/:Project_id/doc/:doc_id', httpAuth, DocumentController.setDocument
app.ignoreCsrf('post', '/project/:Project_id/doc/:doc_id')
app.post '/user/:user_id/update/*', httpAuth, Project.startBufferingRequest, TpdsController.mergeUpdate
app.post '/user/:user_id/update/*', httpAuth, TpdsController.mergeUpdate
app.del '/user/:user_id/update/*', httpAuth, TpdsController.deleteUpdate
app.ignoreCsrf('post', '/user/:user_id/update/*')
app.ignoreCsrf('delete', '/user/:user_id/update/*')