Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/processone/ejabberd.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2019-02-27 11:56:20 +0300
committerPaweł Chmielowski <pchmielowski@process-one.net>2019-02-27 11:56:31 +0300
commit538f35d05a9bb25f24b30ea43b07a36cfc043e12 (patch)
treeedb9621c8b41f5482b6fd9da7871c2b062b00fc8 /src/mod_mam.erl
parent77ac0584ed776e39e48deb20944a8b2e139dc594 (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 'src/mod_mam.erl')
-rw-r--r--src/mod_mam.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_mam.erl b/src/mod_mam.erl
index ee38f5011..e066f6d0e 100644
--- a/src/mod_mam.erl
+++ b/src/mod_mam.erl
@@ -440,7 +440,7 @@ muc_filter_message(Acc, _MUCState, _FromNick) ->
-spec make_id() -> binary().
make_id() ->
- p1_time_compat:system_time(micro_seconds).
+ erlang:system_time(microsecond).
-spec get_stanza_id(stanza()) -> integer().
get_stanza_id(#message{meta = #{stanza_id := ID}}) ->