Skip to content

Commit

Permalink
Remove warnings about unused variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlouis committed Aug 2, 2013
1 parent aa73875 commit eca6aa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/etorrent_magnet_ctl.erl
Expand Up @@ -63,7 +63,7 @@ handle_call(request, _From, State) ->
handle_cast(msg, State) ->
{noreply, State}.

handle_info({magnet_peer_ctl, PeerPid, {ready, MetadataSize, PieceCount, IP}},
handle_info({magnet_peer_ctl, PeerPid, {ready, MetadataSize, PieceCount, _IP}},
State=#mctl_state{var=Var}) ->
% monitor(process, PeerPid),
lager:debug("Register PeerPid=~p, MetadataSize=~p, PieceCount=~p.",
Expand All @@ -81,7 +81,7 @@ handle_info({magnet_peer_ctl, PeerPid, {piece, PieceNum, Piece}},
etorrent_metadata_variant:save_piece(PeerPid, PieceNum, Piece, Var),
lager:debug("Progress of ~p is ~p/~p.",
[PeerPid, PeerProgress, GlobalProgress]),
{TryCheck, Fail2Ban, RequestMore} =
{TryCheck, _Fail2Ban, RequestMore} =
case {GlobalProgress, PeerProgress} of
{downloaded, downloaded} -> {true, true, false};
{downloaded, in_progress} -> {true, false, true};
Expand Down

0 comments on commit eca6aa8

Please sign in to comment.