You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
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).
32
32
33
33
Thus, a worker is responsible for downloading/uploading a single file, and then exits.
34
34
All longer-term state and functionality is the responsibility of the main process, here, `file-transfer`.
Copy file name to clipboardExpand all lines: src/cookbook/package_apis.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ A normal process: the [`server`](https://github.com/hyperware-ai/hyperware-book/
71
71
72
72
#### `metadata.json`
73
73
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.
75
75
When the `dependencies` field is populated, [`kit build`](../kit/build.md) will fetch that dependency from either:
Copy file name to clipboardExpand all lines: src/cookbook/package_apis_workers.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ The `file_transfer` process imports and uses the exported `start_download()`:
54
54
55
55
#### `metadata.json`
56
56
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.
58
58
When the `dependencies` field is populated, [`kit build`](../kit/build.md) will fetch that dependency from a Hyperware node hosting it.
59
59
60
60
See [previous recipe](./package_apis.md#dependencies) for more discussion of dependencies.
0 commit comments