joakimk / toniq

Simple and reliable background job processing library for Elixir.
http://toniq.elixir.pm/
340 stars 25 forks source link

Do not use deprecated :erlang.now/0 #37

Open mspanc opened 7 years ago

mspanc commented 7 years ago

When I am using toniq 1.2.0 with elixir 1.3.4, the following warning appears during compilation:

remote: warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
remote:   lib/toniq/keepalive_persistence.ex:113
seivan commented 7 years ago

@mspanc I don't got access to 1.3.4 now, but what happens if you dump :timer.now_diff(:erlang.now, {0, 0, 0}) * 1000 into iex?

I don't get anything on 1.4.0.

mspanc commented 7 years ago

It is due to new erlang, not elixir