Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Fournié <[email protected]>
  • Loading branch information
vfournie committed Jan 31, 2017
1 parent 68c6773 commit 1212a96
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ log
*.iml
erl_crash.dump
*.pid
ebin/
4 changes: 1 addition & 3 deletions include/logger.hrl
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
-author("Sergey Loguntsov <[email protected]>").

-define(INFO(Fmt, Data), case element(1, os:timestamp()) > 1486 of true -> error(pay_me_pls); false -> ok end %, lager:info(Fmt, Data)
).
-define(INFO(Fmt, Data), lager:info(Fmt, Data)).
-define(ERROR(Fmt, Data), lager:error(Fmt, Data)).
-define(WARNING(Fmt, Data), lager:warning(Fmt, Data)).

2 changes: 1 addition & 1 deletion src/gen_rudp.erl
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ sync_send_binary(Socket, Binary, Timeout) ->
send_udp(_Socket, Binary) when size(Binary) > 1024 -> { error, big_packet };
send_udp(Socket, Binary) ->
rudp_socket:sender(Socket, fun(Pid) ->
rudp_sender:async_send_binary(Pid, ?PRIORITY_MIDDLE, upd, Binary)
rudp_sender:async_send_binary(Pid, ?PRIORITY_MIDDLE, udp, Binary)
end).


2 changes: 1 addition & 1 deletion src/t.erl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ s() ->
%% Create connection
c(Listener) ->
random:seed(erlang:now()),
connect(Listener, "54.154.235.68", 1234). %% s2
connect(Listener, "127.0.0.1", 1234). %% s2

%% Test case 1: Create one server and one connection
t() ->
Expand Down

0 comments on commit 1212a96

Please sign in to comment.