Skip to content

Commit

Permalink
fix: remove webtransport from default transports
Browse files Browse the repository at this point in the history
  • Loading branch information
2color committed Nov 7, 2024
1 parent aecac3d commit a11d54c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion benchmarks/transports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"@libp2p/tcp": "^10.0.0",
"@libp2p/webrtc": "^5.0.0",
"@libp2p/websockets": "^9.0.0",
"@libp2p/webtransport": "^5.0.0",
"@multiformats/multiaddr": "^12.2.1",
"aegir": "^45.0.1",
"blockstore-fs": "^2.0.1",
Expand Down
4 changes: 1 addition & 3 deletions benchmarks/transports/src/runner/helia/transports.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { circuitRelayTransport } from '@libp2p/circuit-relay-v2'
import { webRTC } from '@libp2p/webrtc'
import { webSockets } from '@libp2p/websockets'
import * as wsFilters from '@libp2p/websockets/filters'
import { webTransport } from '@libp2p/webtransport'
import type { Transport } from '@libp2p/interface'

interface TransportFactory { (...args: any[]): Transport }
Expand All @@ -13,7 +12,6 @@ export function getTransports (): TransportFactory[] {
filter: wsFilters.all
}),
webRTC(),
circuitRelayTransport(),
webTransport()
circuitRelayTransport()
]
}
1 change: 0 additions & 1 deletion packages/helia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
"@libp2p/upnp-nat": "^2.0.0",
"@libp2p/webrtc": "^5.0.0",
"@libp2p/websockets": "^9.0.0",
"@libp2p/webtransport": "^5.0.0",
"@multiformats/dns": "^1.0.1",
"blockstore-core": "^5.0.0",
"datastore-core": "^10.0.0",
Expand Down
2 changes: 0 additions & 2 deletions packages/helia/src/utils/libp2p-defaults.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { mplex } from '@libp2p/mplex'
import { ping, type PingService } from '@libp2p/ping'
import { webRTC, webRTCDirect } from '@libp2p/webrtc'
import { webSockets } from '@libp2p/websockets'
import { webTransport } from '@libp2p/webtransport'
import { ipnsSelector } from 'ipns/selector'
import { ipnsValidator } from 'ipns/validator'
import * as libp2pInfo from 'libp2p/version'
Expand Down Expand Up @@ -48,7 +47,6 @@ export function libp2pDefaults (options: Libp2pDefaultsOptions = {}): Libp2pOpti
circuitRelayTransport(),
webRTC(),
webRTCDirect(),
webTransport(),
webSockets()
],
connectionEncrypters: [
Expand Down

0 comments on commit a11d54c

Please sign in to comment.