From 2c4c8dc11b4678498f09b0e905cfd1c1428a21a3 Mon Sep 17 00:00:00 2001 From: seungjinstord <121889101+seungjinstord@users.noreply.github.com> Date: Wed, 20 Mar 2024 10:17:59 -0700 Subject: [PATCH] chore: update moduledoc module example snippets (#41) ## Checklist - [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. --- lib/buffy/throttle_and_timed.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/buffy/throttle_and_timed.ex b/lib/buffy/throttle_and_timed.ex index fd882b1..b0f8a57 100644 --- a/lib/buffy/throttle_and_timed.ex +++ b/lib/buffy/throttle_and_timed.ex @@ -90,8 +90,8 @@ defmodule Buffy.ThrottleAndTimed do defmodule MyTask do use Buffy.ThrottleAndTimed, - throttle: :timer.minutes(2) - loop_timeout: :timer.minutes(2) + throttle: :timer.minutes(2), + loop_interval: :timer.minutes(2) def handle_throttle(args) do # Do something with args @@ -162,7 +162,7 @@ defmodule Buffy.ThrottleAndTimed do supervisor_module: Horde.DynamicSupervisor, supervisor_name: MyApp.HordeDynamicSupervisor, throttle: :timer.minutes(2), - loop_timeout: :timer.minutes(10) + loop_interval: :timer.minutes(10) def handle_throttle(args) do # Do something with args