removed output
This commit is contained in:
parent
0c340f95d2
commit
5620b67c34
9 changed files with 138 additions and 30 deletions
|
@ -30,20 +30,20 @@ start(Socket) ->
|
|||
join_table(Num) ->
|
||||
case ggs_coordinator:join_table(integer_to_list(Num)) of
|
||||
{ok, T} ->
|
||||
io:format("Joining existing table: ~p~n", [T]),
|
||||
%io:format("Joining existing table: ~p~n", [T]),
|
||||
T;
|
||||
{error, no_such_table} ->
|
||||
case ggs_coordinator:create_table({force, integer_to_list(Num)}) of
|
||||
{ok, TBToken} -> ok
|
||||
end,
|
||||
case ggs_coordinator:join_table(integer_to_list(Num)) of
|
||||
{ok, T} -> io:format("Creating new table: ~p~n", [T]),
|
||||
{ok, T} -> %io:format("Creating new table: ~p~n", [T]),
|
||||
T;
|
||||
{error, E} -> erlang:display(E),
|
||||
{error, E} -> %erlang:display(E),
|
||||
join_table(Num+1)
|
||||
end;
|
||||
{error, table_full} ->
|
||||
erlang:display("Table full!"),
|
||||
%erlang:display("Table full!"),
|
||||
join_table(Num+1)
|
||||
end.
|
||||
|
||||
|
@ -128,4 +128,4 @@ terminate(Reason, State) ->
|
|||
% TODO: release Socket
|
||||
ok.
|
||||
|
||||
code_change(_OldVsn, St, _Extra) -> {ok, St}.
|
||||
code_change(_OldVsn, St, _Extra) -> {ok, St}.
|
||||
|
|
Reference in a new issue