mirror of
https://github.com/fluencelabs/aqua-lib
synced 2024-12-03 14:50:24 +00:00
feat(worker): change cu_ids type (#84)
This commit is contained in:
parent
ae27eebd67
commit
c92d3e3363
@ -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`.
|
||||
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user