summaryrefslogtreecommitdiffstats
path: root/src/invidious.cr
diff options
context:
space:
mode:
Diffstat (limited to 'src/invidious.cr')
-rw-r--r--src/invidious.cr3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index 1550bc8e..8d50f815 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -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