mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-27 00:09:31 -05:00
Randomly refresh HTTP clients
This commit is contained in:
parent
61e3b47210
commit
f77dcb7f9b
@ -24,6 +24,9 @@ spawn do
|
|||||||
id = Deque.new(50, "0xjKNDMgE54")
|
id = Deque.new(50, "0xjKNDMgE54")
|
||||||
while true
|
while true
|
||||||
client = get_client
|
client = get_client
|
||||||
|
if rand(30) > 1
|
||||||
|
client = HTTP::Client.new(URL, CONTEXT)
|
||||||
|
end
|
||||||
time = Time.now
|
time = Time.now
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user