Skip to content

Commit 7a6ce7b

Browse files
committed
Apply TODOs related to older OTP versions
1 parent 6ad3c9b commit 7a6ce7b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/instrument/mongoose_instrument_probe.erl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
mongoose_instrument:probe_config()) -> timer:tref().
1313
start_probe_timer(EventName, Labels, #{module := Module} = ProbeConfig) ->
1414
Interval = timer:seconds(get_probe_interval(ProbeConfig)),
15-
%% TODO: when dropping support for OTP25, consider changing this to apply_repeatedly
16-
{ok, TRef} = timer:apply_interval(Interval, ?MODULE, call, [Module, EventName, Labels]),
15+
{ok, TRef} = timer:apply_repeatedly(Interval, ?MODULE, call, [Module, EventName, Labels]),
1716
TRef.
1817

1918
call(ProbeMod, EventName, Labels) ->

test/common/mongoose_helper.erl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,7 @@ change_config_option(Config, Option, NewValue) ->
489489

490490
restore_config(Config) ->
491491
Options = get_config_backup(Config),
492-
%% TODO replace with maps:foreach when dropping OTP 23
493-
maps:map(fun do_restore_config_option/2, Options),
492+
maps:foreach(fun do_restore_config_option/2, Options),
494493
ok.
495494

496495
restore_config_option(Config, Option) ->

0 commit comments

Comments
 (0)