mirror of
https://github.com/iv-org/invidious.git
synced 2026-11-27 08:21:44 +00:00
chore: update to ameba 1.7.0 and adapt most of the code to it (#6082)
* chore: update to ameba 1.7.0 and adapt most of the code to it * forgot to add this to build ameba into the ./bin directory for use, as ameba does not longer offer a postinstall script * forgot to update ameba in the shards files * remove leftover : in rescue * Use ameba linter action instead of installing it with shards
This commit is contained in:
@@ -123,7 +123,7 @@ Kemal.config.extra_options do |parser|
|
||||
parser.on("-c THREADS", "--channel-threads=THREADS", "Number of threads for refreshing channels (default: #{CONFIG.channel_threads})") do |number|
|
||||
begin
|
||||
CONFIG.channel_threads = number.to_i
|
||||
rescue ex
|
||||
rescue
|
||||
puts "THREADS must be integer"
|
||||
exit
|
||||
end
|
||||
@@ -131,7 +131,7 @@ Kemal.config.extra_options do |parser|
|
||||
parser.on("-f THREADS", "--feed-threads=THREADS", "Number of threads for refreshing feeds (default: #{CONFIG.feed_threads})") do |number|
|
||||
begin
|
||||
CONFIG.feed_threads = number.to_i
|
||||
rescue ex
|
||||
rescue
|
||||
puts "THREADS must be integer"
|
||||
exit
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user