Guest User

Untitled

a guest
Oct 16th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #!/usr/bin/env escript
  2. %% -*- erlang -*-
  3. %%! -smp enable -name txn@127.0.0.1 -cookie antidote
  4.  
  5. -mode(compile).
  6.  
  7. main([Target]) ->
  8. erlang:set_cookie(node(), antidote),
  9. O = {a_set, antidote_crdt_gset, bucket},
  10. E = rand:uniform(100000),
  11. R = rpc:call(list_to_atom(Target), antidote, update_objects, [ignore, [], [{O, add, E}]]),
  12. io:format("~p~n", [R]).
Add Comment
Please, Sign In to add comment