From c92d3e3363a936b0ba4db6bd0b2e2e42337bcfd1 Mon Sep 17 00:00:00 2001 From: Nick Date: Mon, 19 Feb 2024 20:12:24 +0300 Subject: [PATCH] feat(worker): change cu_ids type (#84) --- workers.aqua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workers.aqua b/workers.aqua index c559d26..054da30 100644 --- a/workers.aqua +++ b/workers.aqua @@ -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.