mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
Replace code using p1_time_compat wrapper with native functions
Since we now require R19, we shouldn't need that anymore. There are still couple places where p1_time_compat:unique_timestamp() is used as there is no direct equivalent.
This commit is contained in:
parent
77ac0584ed
commit
538f35d05a
44 changed files with 80 additions and 80 deletions
|
@ -1061,11 +1061,11 @@ topic_alias_maximum(Host) ->
|
|||
%%%===================================================================
|
||||
-spec current_time() -> milli_seconds().
|
||||
current_time() ->
|
||||
p1_time_compat:monotonic_time(milli_seconds).
|
||||
erlang:monotonic_time(millisecond).
|
||||
|
||||
-spec unix_time() -> seconds().
|
||||
unix_time() ->
|
||||
p1_time_compat:system_time(seconds).
|
||||
erlang:system_time(second).
|
||||
|
||||
-spec set_keep_alive(state(), seconds()) -> state().
|
||||
set_keep_alive(State, 0) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue