Skip to content

Commit 2c4c8dc

Browse files
chore: update moduledoc module example snippets (#41)
## Checklist <!-- For each bullet, ensure your pr meets the criteria and write a note explaining how this PR relates. Mark them as complete as they are done. All top-level checkboxes should be checked regardless of their relevance to the pr with a note explaining whether they are relevant or not. --> - [x] Code conforms to the [Elixir Styleguide](https://github.com/christopheradams/elixir_style_guide) ## Problem Moduledoc examples were not up to date in terms of the loop interval config name. ## Details Modified it to use the correct config name.
1 parent 775886d commit 2c4c8dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/buffy/throttle_and_timed.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ defmodule Buffy.ThrottleAndTimed do
9090
9191
defmodule MyTask do
9292
use Buffy.ThrottleAndTimed,
93-
throttle: :timer.minutes(2)
94-
loop_timeout: :timer.minutes(2)
93+
throttle: :timer.minutes(2),
94+
loop_interval: :timer.minutes(2)
9595
9696
def handle_throttle(args) do
9797
# Do something with args
@@ -162,7 +162,7 @@ defmodule Buffy.ThrottleAndTimed do
162162
supervisor_module: Horde.DynamicSupervisor,
163163
supervisor_name: MyApp.HordeDynamicSupervisor,
164164
throttle: :timer.minutes(2),
165-
loop_timeout: :timer.minutes(10)
165+
loop_interval: :timer.minutes(10)
166166
167167
def handle_throttle(args) do
168168
# Do something with args

0 commit comments

Comments
 (0)