Skip to content

Commit

Permalink
Rename funbox_timer to funbox_utimer
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrivereshchagin committed Jan 10, 2024
1 parent 1ffa074 commit ecbf0b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/funbox_producer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ init(Config) ->
PushRate = funbox_config:producer_rate(Config),
loop(#state{max_number = MaxNumber,
queue_key = QueueKey,
push_interval = funbox_timer:seconds(1) div PushRate,
push_interval = funbox_utimer:seconds(1) div PushRate,
redis_client = Client});
{error, Reason} ->
exit(Reason)
Expand Down Expand Up @@ -70,4 +70,4 @@ push_number(State) ->

-spec maybe_sleep(integer()) -> ok.
maybe_sleep(Time) when Time =< 0 -> ok;
maybe_sleep(Time) -> funbox_timer:sleep(Time).
maybe_sleep(Time) -> funbox_utimer:sleep(Time).
2 changes: 1 addition & 1 deletion src/funbox_timer.erl → src/funbox_utimer.erl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-module(funbox_timer).
-module(funbox_utimer).

%% API
-export([sleep/1]).
Expand Down

0 comments on commit ecbf0b1

Please sign in to comment.