diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2019-02-27 09:56:20 +0100 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2019-02-27 09:56:31 +0100 |
commit | 538f35d05a9bb25f24b30ea43b07a36cfc043e12 (patch) | |
tree | edb9621c8b41f5482b6fd9da7871c2b062b00fc8 /include | |
parent | Remove now() calls that sneaked in in pull requests (diff) |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/mod_mam.hrl | 2 | ||||
-rw-r--r-- | include/mod_muc_room.hrl | 2 | ||||
-rw-r--r-- | include/mod_push.hrl | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/include/mod_mam.hrl b/include/mod_mam.hrl index e02b9249d..0d03014ad 100644 --- a/include/mod_mam.hrl +++ b/include/mod_mam.hrl @@ -21,7 +21,7 @@ -record(archive_msg, {us = {<<"">>, <<"">>} :: {binary(), binary()} | '$2', id = <<>> :: binary() | '_', - timestamp = p1_time_compat:timestamp() :: erlang:timestamp() | '_' | '$1', + timestamp = erlang:timestamp() :: erlang:timestamp() | '_' | '$1', peer = {<<"">>, <<"">>, <<"">>} :: ljid() | '_' | '$3' | undefined, bare_peer = {<<"">>, <<"">>, <<"">>} :: ljid() | '_' | '$3', packet = #xmlel{} :: xmlel() | message() | '_', diff --git a/include/mod_muc_room.hrl b/include/mod_muc_room.hrl index 9111128c0..efb702337 100644 --- a/include/mod_muc_room.hrl +++ b/include/mod_muc_room.hrl @@ -113,7 +113,7 @@ history :: lqueue(), subject = [] :: [text()], subject_author = <<"">> :: binary(), - just_created = p1_time_compat:os_system_time(micro_seconds) :: true | integer(), + just_created = erlang:system_time(microsecond) :: true | integer(), activity = treap:empty() :: treap:treap(), room_shaper = none :: shaper:shaper(), room_queue :: p1_queue:queue() | undefined diff --git a/include/mod_push.hrl b/include/mod_push.hrl index 24f02a3ff..cdd5b0cf6 100644 --- a/include/mod_push.hrl +++ b/include/mod_push.hrl @@ -18,7 +18,7 @@ %%%---------------------------------------------------------------------- -record(push_session, {us = {<<"">>, <<"">>} :: {binary(), binary()}, - timestamp = p1_time_compat:timestamp() :: erlang:timestamp(), + timestamp = erlang:timestamp() :: erlang:timestamp(), service = {<<"">>, <<"">>, <<"">>} :: ljid(), node = <<"">> :: binary(), xml :: undefined | xmlel()}). |