Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(worker): change cu_ids type #84

Merged
merged 1 commit into from
Feb 19, 2024
Merged
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
4 changes: 3 additions & 1 deletion workers.aqua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ aqua WorkersLib declares *

import PeerId from "./builtin.aqua"

alias CUID : []u8

-- Available only on rust peers
service Worker("worker"):
-- Creates new worker associated with `deal_id` and allows specifying custom `cu_ids`.
Expand All @@ -10,7 +12,7 @@ service Worker("worker"):
-- cu_ids – an array of target compute unit IDs
-- Returns: PeerId - worker ID if creation was successful
-- Throws an error if a worker exists.
create(deal_id: string, cu_ids: []string) -> PeerId
create(deal_id: string, cu_ids: []CUID) -> PeerId

-- Returns worker peer id associated with `deal_id`.
-- Returns nil if worker doesn't exist.
Expand Down
Loading