Skip to content

Commit

Permalink
Merge pull request #571 from oceanprotocol/feature/remove_mplex
Browse files Browse the repository at this point in the history
remove mplex
  • Loading branch information
alexcos20 authored Jul 31, 2024
2 parents 2595e0d + b4b9fad commit dd241a9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 32 deletions.
29 changes: 0 additions & 29 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"@libp2p/interface-address-manager": "^3.0.1",
"@libp2p/kad-dht": "^12.1.1",
"@libp2p/mdns": "^10.1.1",
"@libp2p/mplex": "^10.1.1",
"@libp2p/peer-id": "^4.1.4",
"@libp2p/peer-id-factory": "^4.1.4",
"@libp2p/ping": "^1.1.1",
Expand Down
3 changes: 1 addition & 2 deletions src/components/P2P/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import { bootstrap } from '@libp2p/bootstrap'
import { noise } from '@chainsafe/libp2p-noise'
import { mdns } from '@libp2p/mdns'
import { mplex } from '@libp2p/mplex'
import { yamux } from '@chainsafe/libp2p-yamux'
import { peerIdFromString } from '@libp2p/peer-id'
import { pipe } from 'it-pipe'
Expand Down Expand Up @@ -322,7 +321,7 @@ export class OceanP2P extends EventEmitter {
},
peerId: config.keys.peerId,
transports,
streamMuxers: [yamux(), mplex()],
streamMuxers: [yamux()],
connectionEncryption: [
noise()
// plaintext()
Expand Down

0 comments on commit dd241a9

Please sign in to comment.