Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion building-blocks/autobase.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ Triggered when the autobase view updates after `apply` has finished running.

#### `base.on('interrupt', (reason) => { ... })`

Triggered when `host.interrupt(reason)` is called in the `apply` handler. See [`host.interrupt(reason)`](#hostinterruptreason) for when interrupts are used.
Triggered when `host.interrupt(reason)` is called in the `apply` handler. See [`host.interrupt(reason)`](#host.interrupt-reason) for when interrupts are used.

#### `base.on('fast-forward', (to, from) => { ... })`

Expand Down
2 changes: 1 addition & 1 deletion building-blocks/hyperbee.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ Gets the key and value from a block number.

#### **`const stream = db.replicate(isInitiatorOrStream)`** {#db.replicate}

See more about how replicate works at [core.replicate](hypercore.md#const-stream-core.replicate-isinitiatororreplicationstream).
See more about how replicate works at [core.replicate](hypercore.md#core.replicate).

#### **`const batch = db.batch()`** {#db.batch}

Expand Down
2 changes: 1 addition & 1 deletion building-blocks/hyperswarm.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ A [`HyperDHT`](./hyperdht.md) instance. Useful for lower-level control over Hype

Returns a [`PeerDiscovery`](hyperswarm.md#peer-discovery) object.

Start discovering and connecting to peers sharing a common topic. As new peers are connected, they will be emitted from the swarm as [`connection`](hyperswarm.md#swarmonconnection-socket-peerinfo) events.
Start discovering and connecting to peers sharing a common topic. As new peers are connected, they will be emitted from the swarm as [`connection`](hyperswarm.md#swarm.onconnection) events.

`topic` must be a 32-byte Buffer and use a publicly sharable id, typically a Hypercore `discoveryKey` which we can then link to (join will leak the `topic` to DHT nodes).

Expand Down
4 changes: 2 additions & 2 deletions helpers/localdrive.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Returns a stream of all subpaths of entries in drive stored at paths prefixed by

Mirrors this drive into another. Returns a [`MirrorDrive`](../helpers/mirrordrive.md) instance constructed with `options`.

Call [`await mirror.done()`](../helpers/mirrordrive.md#await-mirrordone) to wait for the mirroring to finish.
Call [`await mirror.done()`](../helpers/mirrordrive.md#await-mirror.done) to wait for the mirroring to finish.

**`const rs = drive.createReadStream(key, [options])`**

Expand Down Expand Up @@ -200,4 +200,4 @@ const drive = new Localdrive('./my-app', { metadata })

```javascript
await drive.put('/file.txt', Buffer.from('a')) // Default metadata is null
```
```