Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set max_concurrency to 50 #268

Merged
merged 1 commit into from
Nov 17, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ This sets `HTML::Proofer`'s extensions to use _.htm_, gives Typhoeus a configura

You can similarly pass in a `:hydra` option with a hash configuration for Hydra.

The default value is `typhoeus => { :followlocation => true }`.
The default value is `{ :typhoeus => { :followlocation => true }, :hydra => { :max_concurrency => 50 } }`.

### Configuring Parallel

Expand Down
6 changes: 5 additions & 1 deletion lib/html/proofer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ class Proofer
}
}

HYDRA_DEFAULTS = {
:max_concurrency => 50
}

def initialize(src, opts = {})
@src = src

Expand Down Expand Up @@ -65,7 +69,7 @@ def initialize(src, opts = {})
@typhoeus_opts = TYPHOEUS_DEFAULTS.merge(opts[:typhoeus] || {})
opts.delete(:typhoeus)

@hydra_opts = opts[:hydra] || {}
@hydra_opts = HYDRA_DEFAULTS.merge(opts[:hydra] || {})
opts.delete(:hydra)

# fall back to parallel defaults
Expand Down