Skip to content

Commit

Permalink
chore: update import
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Nov 21, 2023
1 parent 87e86e4 commit b55c47b
Show file tree
Hide file tree
Showing 5 changed files with 148 additions and 172 deletions.
14 changes: 4 additions & 10 deletions perf/impl/js-libp2p/v1.0-mplex-noise/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { noise } from '@chainsafe/libp2p-noise'
import { mplex } from '@chainsafe/libp2p-mplex'
import { mplex } from '@libp2p/mplex'
import { tcp } from '@libp2p/tcp'
import { multiaddr } from '@multiformats/multiaddr'
import { createLibp2p } from 'libp2p'
Expand Down Expand Up @@ -41,15 +41,9 @@ export async function main (runServer, serverIpAddress, transport, uploadBytes,
const { host, port } = splitHostPort(serverIpAddress)

const config = {
//peerId,
transports: [tcp({
socket: {
noDelay: true
},
server: {
noDelay: true
}
})],
transports: [
tcp()
],
streamMuxers: [
mplex()
],
Expand Down
14 changes: 4 additions & 10 deletions perf/impl/js-libp2p/v1.0-mplex-plaintext/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { plaintext } from '@libp2p/plaintext'
import { mplex } from '@chainsafe/libp2p-mplex'
import { mplex } from '@libp2p/mplex'
import { tcp } from '@libp2p/tcp'
import { multiaddr } from '@multiformats/multiaddr'
import { createLibp2p } from 'libp2p'
Expand Down Expand Up @@ -41,15 +41,9 @@ export async function main (runServer, serverIpAddress, transport, uploadBytes,
const { host, port } = splitHostPort(serverIpAddress)

const config = {
//peerId,
transports: [tcp({
socket: {
noDelay: true
},
server: {
noDelay: true
}
})],
transports: [
tcp()
],
streamMuxers: [
mplex()
],
Expand Down
12 changes: 3 additions & 9 deletions perf/impl/js-libp2p/v1.0-yamux-plaintext/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,9 @@ export async function main (runServer, serverIpAddress, transport, uploadBytes,
const { host, port } = splitHostPort(serverIpAddress)

const config = {
//peerId,
transports: [tcp({
socket: {
noDelay: true
},
server: {
noDelay: true
}
})],
transports: [
tcp()
],
streamMuxers: [
yamux()
],
Expand Down
12 changes: 3 additions & 9 deletions perf/impl/js-libp2p/v1.0/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,9 @@ export async function main (runServer, serverIpAddress, transport, uploadBytes,
const { host, port } = splitHostPort(serverIpAddress)

const config = {
//peerId,
transports: [tcp({
socket: {
noDelay: true
},
server: {
noDelay: true
}
})],
transports: [
tcp()
],
streamMuxers: [yamux()],
connectionEncryption: [
noise()
Expand Down
Loading

0 comments on commit b55c47b

Please sign in to comment.