Skip to content

Commit

Permalink
Fix compile warnings with Elixir 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
zolazhou committed Jan 13, 2016
1 parent ea9373b commit bf5c56b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/consul/watch/event.ex
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ defmodule Consul.Watch.Event do
def handle_info(:timeout, %{name: name, index: index, em: em, l_time: l_time} = state) do
case Event.list(wait: @wait, index: index) do
{:ok, response} ->
events = Event.from_response(response) |> Enum.filter &(&1.name == name)
events = Event.from_response(response) |> Enum.filter(&(&1.name == name))
new_l_time = Event.last_time(events)
notify_events(events, em, index, l_time)
{:noreply, %{state | index: consul_index(response), l_time: new_l_time}, 0}
Expand Down

0 comments on commit bf5c56b

Please sign in to comment.