mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
Finished removing usage of Excon- package download reimplemented (TODO: see if it's possibly to not need to make n requests to endpoint to emulate excon's chunked downloading), raise Async::Stop when window is closed to shutdown reactor
This commit is contained in:
@@ -473,9 +473,6 @@ class W3DHub
|
||||
internet = Async::HTTP::Internet.instance
|
||||
|
||||
Api.package(internet, package) do |chunk, remaining_bytes, total_bytes|
|
||||
# Store progress somewhere
|
||||
# Kernel.puts "#{name}-#{version}: #{(remaining_bytes.to_f / total_bytes).round}%"
|
||||
|
||||
block&.call(chunk, remaining_bytes, total_bytes)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user