Skip to content

Commit f52f7ae

Browse files
committed
fix code links
1 parent 2ca0204 commit f52f7ae

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/cookbook/file_transfer.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ Specifically, it provides a function, `start_download()`, which spins up a worke
2121
When called on the node serving the file, it spins up a worker to upload the requested file to the requestor.
2222

2323
Downloading a file proceeds as follows:
24-
1. Requestor [calls](https://github.com/hyperware-ai/hyperware-book/blob/main/code/file-transfer/file-transfer/src/lib.rs#L94) [`start_download()`](https://github.com/hyperware-ai/hyperware-book/blob/main/src/code/file-transfer/file-transfer-worker-api/src/lib.rs#L14-L55), which:
24+
1. Requestor [calls](https://github.com/hyperware-ai/hyperware-book/blob/main/code/file-transfer/file-transfer/src/lib.rs#L94) [`start_download()`](https://github.com/hyperware-ai/hyperware-book/blob/main/code/file-transfer/file-transfer-worker-api/src/lib.rs#L14-L55), which:
2525
1. `spawn()`s a `file-transfer-worker`.
2626
2. Passes `file-transfer-worker` a `Download` Request variant.
27-
3. `file-transfer-worker` [forwards a modified `Download` Request variant to the `target`](https://github.com/hyperware-ai/hyperware-book/blob/main/src/code/file-transfer/file-transfer-worker/src/lib.rs#L70-L79).
27+
3. `file-transfer-worker` [forwards a modified `Download` Request variant to the `target`](https://github.com/hyperware-ai/hyperware-book/blob/main/code/file-transfer/file-transfer-worker/src/lib.rs#L70-L79).
2828
2. Provider receives `Download` Request variant, calls `start_download()`, which:
2929
1. `spawn()`s a `file-transfer-worker`.
3030
2. Passes `file-transfer-worker` the `Download` Request variant.
31-
3. [Sends chunks of file to the requestor's `file-transfer-worker`](https://github.com/hyperware-ai/hyperware-book/blob/main/src/code/file-transfer/file-transfer-worker/src/lib.rs#L81-L110).
31+
3. [Sends chunks of file to the requestor's `file-transfer-worker`](https://github.com/hyperware-ai/hyperware-book/blob/main/code/file-transfer/file-transfer-worker/src/lib.rs#L81-L110).
3232

3333
Thus, a worker is responsible for downloading/uploading a single file, and then exits.
3434
All longer-term state and functionality is the responsibility of the main process, here, `file-transfer`.

src/cookbook/package_apis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ A normal process: the [`server`](https://github.com/hyperware-ai/hyperware-book/
7171

7272
#### `metadata.json`
7373

74-
The [`metadata.json`](https://github.com/hyperware-ai/hyperware-book/blob/main/src/code/remote-file-storage/client/metadata.json#L14-L16) file has a `properties.dependencies` field.
74+
The [`metadata.json`](https://github.com/hyperware-ai/hyperware-book/blob/main/code/remote-file-storage/client/metadata.json#L14-L16) file has a `properties.dependencies` field.
7575
When the `dependencies` field is populated, [`kit build`](../kit/build.md) will fetch that dependency from either:
7676
1. [A livenet Hyperware hosting it](#../kit/build.md#--port).
7777
2. [A local path](#../kit/build.#--local-dependency).

src/cookbook/package_apis_workers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The `file_transfer` process imports and uses the exported `start_download()`:
5454

5555
#### `metadata.json`
5656

57-
The [`metadata.json`](https://github.com/hyperware-ai/hyperware-book/blob/main/src/code/chat-with-file-transfer/metadata.json#L14-L16) file has a `properties.dependencies` field.
57+
The [`metadata.json`](https://github.com/hyperware-ai/hyperware-book/blob/main/code/chat-with-file-transfer/metadata.json#L14-L16) file has a `properties.dependencies` field.
5858
When the `dependencies` field is populated, [`kit build`](../kit/build.md) will fetch that dependency from a Hyperware node hosting it.
5959

6060
See [previous recipe](./package_apis.md#dependencies) for more discussion of dependencies.

0 commit comments

Comments
 (0)