Skip to content

Commit

Permalink
Adding no auto-import compiler directive..
Browse files Browse the repository at this point in the history
  • Loading branch information
xslogic committed Sep 20, 2011
1 parent 210007e commit e3dc2ec
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/thrift_framed_transport.erl
Expand Up @@ -27,6 +27,8 @@
%% thrift_transport callbacks
-export([write/2, read/2, flush/1, close/1]).

-compile({no_auto_import,[min/2]}).

-record(framed_transport, {wrapped, % a thrift_transport
read_buffer, % iolist()
write_buffer % iolist()
Expand Down
4 changes: 3 additions & 1 deletion src/thrift_http_transport.erl
Expand Up @@ -27,6 +27,8 @@
%% thrift_transport callbacks
-export([write/2, read/2, flush/1, close/1]).

-compile({no_auto_import,[min/2]}).

-record(http_transport, {host, % string()
path, % string()
read_buffer, % iolist()
Expand Down Expand Up @@ -87,7 +89,7 @@ flush(State = #http_transport{host = Host,
{State, ok};
WBinary ->
{ok, {{_Version, 200, _ReasonPhrase}, _Headers, Body}} =
http:request(post,
httpc:request(post,
{"http://" ++ Host ++ Path,
[{"User-Agent", "Erlang/thrift_http_transport"} | ExtraHeaders],
"application/x-thrift",
Expand Down
2 changes: 2 additions & 0 deletions src/thrift_memory_buffer.erl
Expand Up @@ -31,6 +31,8 @@
-type state() :: #memory_buffer{}.
-include("thrift_transport_behaviour.hrl").

-compile({no_auto_import,[min/2]}).

new() ->
State = #memory_buffer{buffer = []},
thrift_transport:new(?MODULE, State).
Expand Down

0 comments on commit e3dc2ec

Please sign in to comment.