From b38d52865682fd2ef98e88572195ec364cd4b4f3 Mon Sep 17 00:00:00 2001 From: Felipe <41008398+StrawberryMaster@users.noreply.github.com> Date: Wed, 1 Jan 2025 12:20:06 +0000 Subject: [PATCH] typo fix --- README.md | 1 - lib/wayback_machine_downloader.rb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 5515fd7..9e4c85c 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,6 @@ There are a few constants that can be edited in the `wayback_machine_downloader. - `RETRY_DELAY` - The delay (in seconds) between retries for HTTP requests. Default is 2 seconds. - `RATE_LIMIT` - The rate limit (in seconds) for HTTP requests. Default is 0.25 seconds. - `CONNECTION_POOL_SIZE` - The size of the HTTP connection pool. Default is 10 connections. -- `HTTP_CACHE_SIZE` - The size of the HTTP cache. Default is 1000. - `MEMORY_BUFFER_SIZE` - The size of the memory buffer (in bytes) for downloads. Default is 16KB. --- diff --git a/lib/wayback_machine_downloader.rb b/lib/wayback_machine_downloader.rb index 2f43ad2..c13cf38 100644 --- a/lib/wayback_machine_downloader.rb +++ b/lib/wayback_machine_downloader.rb @@ -135,7 +135,7 @@ class WaybackMachineDownloader @exclude_filter = params[:exclude_filter] @all = params[:all] @maximum_pages = params[:maximum_pages] ? params[:maximum_pages].to_i : 100 - @threads_count = [params[:threads_count].to_i, 1].max # Garante mínimo de 1 thread + @threads_count = [params[:threads_count].to_i, 1].max @timeout = params[:timeout] || DEFAULT_TIMEOUT @logger = setup_logger @failed_downloads = Concurrent::Array.new