update scripts

This commit is contained in:
boneyard93501 2021-04-29 15:56:22 -05:00
parent faf2656ab2
commit 988d964a0a
4 changed files with 2 additions and 24 deletions

View File

@ -37,5 +37,4 @@
(call relay ("op" "identity") [])
(call %init_peer_id% (returnService "run") ["XOR FAILED" %last_error%])
)
)

View File

@ -1,20 +0,0 @@
service Echo("service-id"):
echo: []string -> []string
service Greeting("service-id"):
greeting: string, bool -> string
func seq_echo_greeter(data: []string, name: string, greeter: bool) -> []string:
big_res: []string
echo_res <- Echo.echo(data)
for s <- echo_res:
big_res.append(Greeting.greeting(s, greeter))
<- big_res
func par_echo_greeter(data: []string, name: string, greeter: bool) -> []string:
big_res: []string
echo_res <- Echo.echo(data)
for s <- echo_res par:
big_res.append(Greeting.greeting(s, greeter))
<- big_res

View File

@ -1,6 +1,6 @@
service Greeting("service-id"):
greeting: string, bool -> string
-- greeting: string -> string
func greeting(name: string, greeter:bool) -> string:
res <- Greeting.greeting(name, greeter)

View File

@ -2,7 +2,7 @@
(seq
(seq
(call relay ("op" "identity") [])
(call node (greeter "greeting") [name] result)
(call node (service "greeting") [name] result)
)
(seq
(call relay ("op" "identity") [])
@ -13,5 +13,4 @@
(call relay ("op" "identity") [])
(call %init_peer_id% (returnService "run") ["XOR FAILED" %last_error%])
)
)