mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
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:
parent
14da1daf67
commit
ba5a984271
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user