Upgrade Crystal to 0.35.1

This commit is contained in:
Alex Ling
2020-06-20 09:09:13 +00:00
parent 96f98f6c78
commit 62af879bfa
7 changed files with 37 additions and 34 deletions
+3 -3
View File
@@ -1,13 +1,13 @@
require "./api"
require "sqlite3"
require "zip"
require "compress/zip"
module MangaDex
class PageJob
property success = false
property url : String
property filename : String
property writer : Zip::Writer
property writer : Compress::Zip::Writer
property tries_remaning : Int32
def initialize(@url, @filename, @writer, @tries_remaning)
@@ -324,7 +324,7 @@ module MangaDex
# Find the number of digits needed to store the number of pages
len = Math.log10(chapter.pages.size).to_i + 1
writer = Zip::Writer.new zip_path
writer = Compress::Zip::Writer.new zip_path
# Create a buffered channel. It works as an FIFO queue
channel = Channel(PageJob).new chapter.pages.size
spawn do