Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
fix: dropped packed
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddias committed Jan 24, 2017
1 parent 0437196 commit a7cfb8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
},
"homepage": "https://github.com/libp2p/js-libp2p-multiplex#readme",
"devDependencies": {
"aegir": "^9.3.2",
"aegir": "^9.3.3",
"chai": "^3.5.0",
"interface-stream-muxer": "^0.5.4",
"interface-stream-muxer": "^0.5.5",
"libp2p-websockets": "^0.9.1",
"pre-commit": "^1.2.2",
"pull-pair": "^1.1.0"
Expand Down
5 changes: 1 addition & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ const pump = require('pump')

function create (rawConn, isListener) {
const stream = toStream(rawConn)
// Let it flow, let it flooow
stream.resume()

stream.on('end', () => {
// Cleanup and destroy the connection when it ends
Expand All @@ -21,8 +19,7 @@ function create (rawConn, isListener) {
})

const mpx = multiplex()
pump(mpx, stream)
pump(stream, mpx)
pump(stream, mpx, stream)

return new Muxer(rawConn, mpx, isListener)
}
Expand Down

0 comments on commit a7cfb8b

Please sign in to comment.