Skip to content

Commit

Permalink
feat(worker): change cu_ids type
Browse files Browse the repository at this point in the history
  • Loading branch information
gurinderu committed Feb 19, 2024
1 parent ae27eeb commit 766073a
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 766073a

Please sign in to comment.