From 54146241562fcece7fd6783305d2c5fd32aa6da8 Mon Sep 17 00:00:00 2001 From: Nick Date: Mon, 19 Feb 2024 18:35:02 +0300 Subject: [PATCH] feat(worker)!: add cu_ids to worker create (#82) * feat(worker): add cu_ids to worker create * add docs * add docs --- workers.aqua | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/workers.aqua b/workers.aqua index 50a1750..c559d26 100644 --- a/workers.aqua +++ b/workers.aqua @@ -4,9 +4,13 @@ import PeerId from "./builtin.aqua" -- Available only on rust peers service Worker("worker"): - -- Creates new worker associated with `deal_id`. - -- Throws an error if worker exists. - create(deal_id: string) -> PeerId + -- Creates new worker associated with `deal_id` and allows specifying custom `cu_ids`. + -- Arguments: + -- deal_id - ID of the deal + -- 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 -- Returns worker peer id associated with `deal_id`. -- Returns nil if worker doesn't exist.