Skip to content

Commit

Permalink
Fix code:is_loaded issues from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
surik committed Nov 16, 2016
1 parent 00ba25a commit b1ed06b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/exometer_report_influxdb.erl
Original file line number Diff line number Diff line change
Expand Up @@ -227,14 +227,14 @@ connect(Proto, Host, Port, Username, Password) when ?HTTP(Proto) ->
http ->
code:load_file(hackney_tcp),
case code:is_loaded(hackney_tcp) of
true -> hackney_tcp;
_ -> hackney_tcp_transport
false -> hackney_tcp_transport;
_ -> hackney_tcp
end;
https ->
code:load_file(hackney_ssl),
case code:is_loaded(hackney_ssl) of
true -> hackney_ssl;
_ -> hackney_ssl_transport
false -> hackney_ssl_transport;
_ -> hackney_ssl
end
end,
hackney:connect(Transport, Host, Port, Options);
Expand Down

0 comments on commit b1ed06b

Please sign in to comment.