dexter has uploaded this change for review.
mnesia_db_euicc: rename timer_setparam to timer_rest
The function timer_setparam is processing REAT api orders
in regular intervals. Naming the timer "timer_rest" makes
more sense.
Change-Id: Icfa203477e044ce2cc312d4b6e2693a97191c61d
---
M src/mnesia_db.erl
M src/mnesia_db_euicc.erl
2 files changed, 5 insertions(+), 5 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/onomondo-eim refs/changes/60/42960/1
diff --git a/src/mnesia_db.erl b/src/mnesia_db.erl
index cd69e3a..d8e7afa 100644
--- a/src/mnesia_db.erl
+++ b/src/mnesia_db.erl
@@ -109,7 +109,7 @@
{atomic, ok} = mnesia:transaction(Trans),
% Start recurring event cycles
- ok = mnesia_db_euicc:timer_setparam(),
+ ok = mnesia_db_euicc:timer_rest(),
ok = mnesia_db_rest:timer_cleanup(),
ok.
diff --git a/src/mnesia_db_euicc.erl b/src/mnesia_db_euicc.erl
index 138290f..013b377 100644
--- a/src/mnesia_db_euicc.erl
+++ b/src/mnesia_db_euicc.erl
@@ -16,7 +16,7 @@
-export([dump/0]).
% trigger recurring events (called automatically by timer from this module)
--export([timer_setparam/0]).
+-export([timer_rest/0]).
trans_create_if_not_exist(EidValue) ->
{ok, CounterValue} = application:get_env(onomondo_eim, counter_value),
@@ -171,8 +171,8 @@
error
end.
-% Run scheduled eUICC procedures
-timer_setparam() ->
+% Handle REST requests in regular intervals
+timer_rest() ->
% An eUICC procedure in the context of this module has nothing to do with any of the procedures specified in
% GSMA SGP.22 or SGP.32. In this module an eUICC procedure is a virtual procedure were parameters in the
% euicc table are set.
@@ -246,7 +246,7 @@
end,
% Next euicc procedure in 10 secs.
- {ok, _} = timer:apply_after(10000, mnesia_db_euicc, timer_setparam, []),
+ {ok, _} = timer:apply_after(10000, mnesia_db_euicc, timer_rest, []),
ok.
% Dump all eUICCs we are aware of
To view, visit change 42960. To unsubscribe, or for help writing mail filters, visit settings.