diff options
author | Simponic <elizabeth.hunt@simponic.xyz> | 2023-02-11 23:37:47 -0700 |
---|---|---|
committer | Simponic <elizabeth.hunt@simponic.xyz> | 2023-02-11 23:37:47 -0700 |
commit | 7568b614447eb0d6f93a578837d1d5ea79e71936 (patch) | |
tree | 3849fb0f773f4fec0c77f32025048f3bd55a6a6e /lib/chessh/discord | |
parent | e5ac660413fd8e2879706cfb06c476aae9164b31 (diff) | |
download | chessh-7568b614447eb0d6f93a578837d1d5ea79e71936.tar.gz chessh-7568b614447eb0d6f93a578837d1d5ea79e71936.zip |
Format buildscripts (pretty unsubstantial but needed to happen :3)
Diffstat (limited to 'lib/chessh/discord')
-rw-r--r-- | lib/chessh/discord/notifier.ex | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/chessh/discord/notifier.ex b/lib/chessh/discord/notifier.ex index c15febe..20a99ec 100644 --- a/lib/chessh/discord/notifier.ex +++ b/lib/chessh/discord/notifier.ex @@ -21,13 +21,15 @@ defmodule Chessh.DiscordNotifier do @impl true def handle_info({:attempt_notification, notification} = body, state) do - [discord_notification_rate, discord_notification_rate_ms] = + [discord_notification_rate, discord_notification_rate_ms, reschedule_delay] = Application.get_env(:chessh, RateLimits) - |> Keyword.take([:discord_notification_rate, :discord_notification_rate_ms]) + |> Keyword.take([ + :discord_notification_rate, + :discord_notification_rate_ms, + :reschedule_delay + ]) |> Keyword.values() - reschedule_delay = Application.get_env(:chessh, RateLimits)[:reschedule_delay] - case Hammer.check_rate_inc( :redis, "discord-rate", |