mirror of
https://github.com/fluencelabs/examples
synced 2024-12-14 15:25:39 +00:00
19 lines
464 B
Clojure
19 lines
464 B
Clojure
(xor
|
|
(seq
|
|
(seq
|
|
(call relay ("op" "identity") [])
|
|
(call node_1 (service "curl_request") ["https://api.duckduckgo.com/?q=homotopy&format=json"] result)
|
|
)
|
|
(seq
|
|
(call relay ("op" "identity") [])
|
|
(call %init_peer_id% (returnService "run") [result])
|
|
)
|
|
)
|
|
(seq
|
|
(call relay ("op" "identity") [])
|
|
(call %init_peer_id% (returnService "run") [%last_error%])
|
|
)
|
|
)
|
|
|
|
|