mirror of
https://github.com/fluencelabs/examples
synced 2025-06-09 16:11:19 +00:00
update to join syntax, at noop() hotfix for par loops
This commit is contained in:
parent
3005b67e50
commit
9b77abd466
@ -1,3 +1,5 @@
|
||||
import "builtin.aqua"
|
||||
|
||||
-- service interface for Wasm module
|
||||
service AddOne:
|
||||
add_one: u64 -> u64
|
||||
@ -17,7 +19,6 @@ func add_one(value: u64, node: string, service_id: string) -> u64:
|
||||
res <- AddOne.add_one(value)
|
||||
<- res
|
||||
|
||||
|
||||
func add_one_three_times(value: u64, ns_tuples: []NodeServiceTuple) -> u64:
|
||||
on ns_tuples!0.node_id:
|
||||
AddOne ns_tuples!0.service_id
|
||||
@ -39,7 +40,8 @@ func add_one_par(value: u64, ns_tuples: []NodeServiceTuple) -> []u64:
|
||||
on ns.node_id:
|
||||
AddOne ns.service_id
|
||||
res <- AddOne.add_one(value)
|
||||
MyOp.identity(res!2)
|
||||
Op.noop()
|
||||
join res[2]
|
||||
<- res
|
||||
|
||||
data ValueNodeService:
|
||||
@ -53,5 +55,6 @@ func add_one_par_alt(payload: []ValueNodeService) -> []u64:
|
||||
on vns.node_id:
|
||||
AddOne vns.service_id
|
||||
res <- AddOne.add_one(vns.value)
|
||||
MyOp.identity(res!2)
|
||||
Op.noop()
|
||||
join res[2]
|
||||
<- res
|
||||
|
Loading…
x
Reference in New Issue
Block a user