mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-25 01:08:30 +03:00
16 lines
430 B
Plaintext
16 lines
430 B
Plaintext
-- run from unison root directory
|
|
-- curl -H "Content-Type: text/plain; charset=UTF-8" --data-binary @node/tests/index.u http://localhost:8081/compute/dummynode909
|
|
|
|
do Remote
|
|
n1 := Remote.spawn;
|
|
n2 := Remote.spawn;
|
|
ind := do Remote
|
|
Remote.transfer n1;
|
|
ind := Index.empty;
|
|
Index.insert "Alice" "Jones" ind;
|
|
Index.insert "Bob" "Smith" ind;
|
|
pure ind;;
|
|
;
|
|
Remote.transfer n2;
|
|
Index.lookup "Alice" ind;;
|