Quantcast
Channel: Thrift API for Erlang
Viewing all articles
Browse latest Browse all 6

Thrift API for Erlang

$
0
0
Greetings. I noticed a small inconvenience in the thrift_client Erlang module. call(Client, Function, Args) when is_pid(Client), is_atom(Function), is_list(Args) -> case gen_server:call(Client, {call, Function, Args}) of R = {ok, _} -> R; R = {error, _} -> R; {exception, Exception} -> throw(Exception) end. The inconvenience is that we can use atoms as pointers to processes in Erlang. Say, I write the following wrapper: -module(hbase). -export([ start_link/0 ]). start_link() -> {ok, Client} = -- Dmitry Demeshchuk

Viewing all articles
Browse latest Browse all 6

Trending Articles