Use make_client when querying instance api

This commit is contained in:
syeopite 2021-10-02 15:16:07 +00:00 committed by GitHub
parent 7b2aa5f98e
commit 77131cff91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ end
def fetch_random_instance def fetch_random_instance
begin begin
instance_api_client = HTTP::Client.new(URI.parse("https://api.invidious.io")) instance_api_client = make_client(URI.parse("https://api.invidious.io"))
# Timeouts # Timeouts
instance_api_client.connect_timeout = 10.seconds instance_api_client.connect_timeout = 10.seconds