mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-06-22 21:41:33 +00:00
fix: add transport manager to exports map and fix docs (#1182)
Addresses PR comments from #1172 - fixes syntax of examples in docs, adds the transport manager to the exports map and renames fault tolerance enum for consistency.
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
import { expect } from 'aegir/utils/chai.js'
|
||||
import { DefaultAddressManager } from '../../src/address-manager/index.js'
|
||||
import { DefaultTransportManager, FAULT_TOLERANCE } from '../../src/transport-manager.js'
|
||||
import { DefaultTransportManager, FaultTolerance } from '../../src/transport-manager.js'
|
||||
import { TCP } from '@libp2p/tcp'
|
||||
import { mockUpgrader } from '@libp2p/interface-compliance-tests/mocks'
|
||||
import { NatManager } from '../../src/nat-manager.js'
|
||||
@ -30,7 +30,7 @@ describe('Nat Manager (TCP)', () => {
|
||||
})
|
||||
components.setAddressManager(new DefaultAddressManager(components, { listen: addrs }))
|
||||
components.setTransportManager(new DefaultTransportManager(components, {
|
||||
faultTolerance: FAULT_TOLERANCE.NO_FATAL
|
||||
faultTolerance: FaultTolerance.NO_FATAL
|
||||
}))
|
||||
|
||||
const natManager = new NatManager(components, {
|
||||
|
Reference in New Issue
Block a user