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
14
14
require Logger
15
15
16
16
@ per_page 10
17
- @ poll_interval :timer . seconds ( 1 )
17
+ @ poll_interval :timer . seconds ( 3 )
18
18
19
19
# Client API
20
20
def start_link ( opts ) do
Original file line number Diff line number Diff line change @@ -49,13 +49,6 @@ defmodule Algora.Github.TokenPool do
49
49
50
50
@ impl true
51
51
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 } }
60
53
end
61
54
end
You can’t perform that action at this time.
0 commit comments