mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Fix sleep in pull_top_videos
This commit is contained in:
parent
38600b3347
commit
3be1c9261f
3 changed files with 19 additions and 6 deletions
|
@ -158,6 +158,7 @@ if config.statistics_enabled
|
|||
}
|
||||
|
||||
sleep 1.minute
|
||||
Fiber.yield
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -167,7 +168,6 @@ if config.top_enabled
|
|||
spawn do
|
||||
pull_top_videos(config, PG_DB) do |videos|
|
||||
top_videos = videos
|
||||
sleep 1.minute
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -176,7 +176,6 @@ popular_videos = [] of ChannelVideo
|
|||
spawn do
|
||||
pull_popular_videos(PG_DB) do |videos|
|
||||
popular_videos = videos
|
||||
sleep 1.minute
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue