File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
lib/algora/integrations/github Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
6154end
You can’t perform that action at this time.
0 commit comments