From 64f9ff8963f624d845ce371cf9dd3f825dc76a7a Mon Sep 17 00:00:00 2001 From: David Schulz Date: Thu, 6 Jun 2024 10:43:05 +0200 Subject: [PATCH] Rust: use cached release information Change-Id: Ibc9b0921e02f4c190986bcf69f75a3347369c68d Reviewed-by: Marcus Tillmanns --- src/plugins/rustls/rustls/init.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/plugins/rustls/rustls/init.lua b/src/plugins/rustls/rustls/init.lua index 474c368f3a9..fcfd4954fef 100644 --- a/src/plugins/rustls/rustls/init.lua +++ b/src/plugins/rustls/rustls/init.lua @@ -27,12 +27,8 @@ end local function installOrUpdateServer() local data = a.wait(fetch({ - url = "https://api.github.com/repos/rust-lang/rust-analyzer/releases?per_page=2", + url = "https://qtccache.qt.io/RustLanguageServer/LatestReleases", convertToTable = true, - headers = { - Accept = "application/vnd.github.v3+json", - ["X-GitHub-Api-Version"] = "2022-11-28" - } })) if type(data) == "table" and #data > 1 then