erlang: Fix a dialyzer warning in thrift_disk_log_transport

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@990963 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David Reiss 2010-08-30 22:05:07 +00:00
parent 14da1daf67
commit ba5a984271

View File

@ -47,7 +47,7 @@ new(LogName, Opts) when is_atom(LogName), is_list(Opts) ->
State2 =
case State#dl_transport.sync_every of
N when is_integer(N), N > 0 ->
{ok, TRef} = timer:apply_interval(N, ?MODULE, force_flush, State),
{ok, TRef} = timer:apply_interval(N, ?MODULE, force_flush, [State]),
State#dl_transport{sync_tref = TRef};
_ -> State
end,