[S] Change in onomondo-eim[master]: mnesia_db_euicc: rename timer_setparam to timer_rest
dexter has uploaded this change for review. ( https://gerrit.osmocom.org/c/onomondo-eim/+/42960?usp=email ) 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 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 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: newchange Gerrit-Project: onomondo-eim Gerrit-Branch: master Gerrit-Change-Id: Icfa203477e044ce2cc312d4b6e2693a97191c61d Gerrit-Change-Number: 42960 Gerrit-PatchSet: 1 Gerrit-Owner: dexter <pmaier@sysmocom.de>
participants (1)
-
dexter