toniq icon indicating copy to clipboard operation
toniq copied to clipboard

Do not use deprecated :erlang.now/0

Open mspanc opened this issue 8 years ago • 2 comments

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

mspanc avatar Jan 05 '17 19:01 mspanc

@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.

seivan avatar Jan 06 '17 15:01 seivan

It is due to new erlang, not elixir

mspanc avatar Jan 06 '17 16:01 mspanc