Skip to content

Commit 0313ea7

Browse files
committed
update github supervisor config
1 parent c10fecf commit 0313ea7

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

lib/algora/integrations/github/poller/comments.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ defmodule Algora.Github.Poller.Comments do
1414
require Logger
1515

1616
@per_page 10
17-
@poll_interval :timer.seconds(1)
17+
@poll_interval :timer.seconds(3)
1818

1919
# Client API
2020
def start_link(opts) do

lib/algora/integrations/github/token_pool.ex

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,6 @@ defmodule Algora.Github.TokenPool do
4949

5050
@impl true
5151
def handle_cast(:refresh_tokens, state) do
52-
{
53-
:noreply,
54-
if length(state.tokens) < @pool_size do
55-
state
56-
else
57-
%{state | tokens: Accounts.get_random_access_tokens(@pool_size), current_token_index: 0}
58-
end
59-
}
52+
{:noreply, %{state | tokens: Accounts.get_random_access_tokens(@pool_size), current_token_index: 0}}
6053
end
6154
end

0 commit comments

Comments
 (0)