mirror of
https://github.com/fluencelabs/aqua.git
synced 2024-12-04 14:40:17 +00:00
5c7f6a89c6
* Fix imports * Remove constants * Return constants * Refactor * Add config * Do not propagate errors * Do not propagate errors through on * Rename hop ephemeral streams * Add comments * Add tests
16 lines
207 B
Plaintext
16 lines
207 B
Plaintext
aqua Main
|
|
|
|
export main
|
|
|
|
service Srv("srv"):
|
|
call(x: i32) -> i32
|
|
|
|
func main(a: i32, b: i32) -> i32:
|
|
res: *i32
|
|
if a > b:
|
|
on "peer" via "relay":
|
|
res <- Srv.call(a)
|
|
|
|
<- res!
|
|
|