dexter has submitted this change. (
https://gerrit.osmocom.org/c/onomondo-eim/+/42960?usp=email )
(
10 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted
one.
)Change subject: mnesia_db_euicc: rename timer_setparam to timer_rest
......................................................................
mnesia_db_euicc: rename timer_setparam to timer_rest
The function timer_setparam is processing REST API orders
in regular intervals. Naming the timer "timer_rest" makes
more sense.
Change-Id: Icfa203477e044ce2cc312d4b6e2693a97191c61d
Related: SYS#8100
---
M src/mnesia_db.erl
M src/mnesia_db_euicc.erl
2 files changed, 5 insertions(+), 5 deletions(-)
Approvals:
jolly: Looks good to me, but someone else must approve
laforge: Looks good to me, approved
Jenkins Builder: Verified
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 https://gerrit.osmocom.org/c/onomondo-eim/+/42960?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: onomondo-eim
Gerrit-Branch: master
Gerrit-Change-Id: Icfa203477e044ce2cc312d4b6e2693a97191c61d
Gerrit-Change-Number: 42960
Gerrit-PatchSet: 11
Gerrit-Owner: dexter <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: dexter <[email protected]>
Gerrit-Reviewer: jolly <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>