mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-23 13:08:31 +00:00
remove db arg passed to refresh channels job
This commit is contained in:
parent
7e25ad5e4e
commit
314f49b687
@ -132,7 +132,7 @@ end
|
|||||||
# Start jobs
|
# Start jobs
|
||||||
|
|
||||||
if CONFIG.channel_threads > 0
|
if CONFIG.channel_threads > 0
|
||||||
Invidious::Jobs.register Invidious::Jobs::RefreshChannelsJob.new(PG_DB)
|
Invidious::Jobs.register Invidious::Jobs::RefreshChannelsJob.new
|
||||||
end
|
end
|
||||||
|
|
||||||
if CONFIG.feed_threads > 0
|
if CONFIG.feed_threads > 0
|
||||||
|
@ -82,7 +82,7 @@ module Invidious::Database::Channels
|
|||||||
SELECT * FROM channels
|
SELECT * FROM channels
|
||||||
SQL
|
SQL
|
||||||
|
|
||||||
return PG_DB.query_all(rqeuest, as: InvidiousChannel)
|
return PG_DB.query_all(request, as: InvidiousChannel)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
class Invidious::Jobs::RefreshChannelsJob < Invidious::Jobs::BaseJob
|
class Invidious::Jobs::RefreshChannelsJob < Invidious::Jobs::BaseJob
|
||||||
private getter db : DB::Database
|
|
||||||
|
|
||||||
def initialize(@db)
|
|
||||||
end
|
|
||||||
|
|
||||||
def begin
|
def begin
|
||||||
max_fibers = CONFIG.channel_threads
|
max_fibers = CONFIG.channel_threads
|
||||||
lim_fibers = max_fibers
|
lim_fibers = max_fibers
|
||||||
|
Loading…
Reference in New Issue
Block a user