Drafted async-http downloader, fixed not correctly fetching icons at startup

This commit is contained in:
2022-02-10 22:40:51 -06:00
parent e267a17c76
commit 202966fd08
3 changed files with 42 additions and 6 deletions

View File

@@ -542,8 +542,6 @@ class W3DHub
def package_fetch(package, &block)
puts "Downloading: #{package.category}:#{package.subcategory}:#{package.name}-#{package.version}"
internet = Async::HTTP::Internet.instance
Api.package(package) do |chunk, remaining_bytes, total_bytes|
block&.call(chunk, remaining_bytes, total_bytes)
end