mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-04-24 20:02:20 +00:00
chore: fix typos in README (#50)
This commit is contained in:
parent
8101be9d4f
commit
e4cc841ebd
@ -67,7 +67,7 @@ describe('compliance', () => {
|
||||
delay (delayMs) {
|
||||
// Add a delay in the connection mechanism for the transport
|
||||
// (this is used by the dial tests)
|
||||
network.connect = (...args) => setTimeout(() => connect(...args), 100)
|
||||
network.connect = (...args) => setTimeout(() => connect(...args), delayMs)
|
||||
},
|
||||
restore () {
|
||||
// Restore the connection mechanism to normal
|
||||
@ -109,7 +109,7 @@ A valid transport (one that follows the interface defined) must implement the fo
|
||||
|
||||
### Creating a transport instance
|
||||
|
||||
- `JavaScript` - `var transport = new Transport([options])`
|
||||
- `JavaScript` - `const transport = new Transport([options])`
|
||||
|
||||
Creates a new Transport instance. `options` is an optional JavaScript object that should include the necessary parameters for the transport instance.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user