From 7568b614447eb0d6f93a578837d1d5ea79e71936 Mon Sep 17 00:00:00 2001 From: Simponic Date: Sat, 11 Feb 2023 23:37:47 -0700 Subject: Format buildscripts (pretty unsubstantial but needed to happen :3) --- lib/chessh/discord/notifier.ex | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'lib/chessh/discord') 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", -- cgit v1.2.3-70-g09d2