diff options
| author | Omar Roth <omarroth@protonmail.com> | 2019-06-15 19:18:36 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@protonmail.com> | 2019-06-15 19:18:36 -0500 |
| commit | 3be1c9261f12b44a8e84597bc59d1fe3d8504f87 (patch) | |
| tree | f4111c19a78f60a4e6f6f48b6864287cec4f8a72 /src/invidious.cr | |
| parent | 38600b33477506aa99c3b3dab16b7d16f3842d84 (diff) | |
| download | invidious-3be1c9261f12b44a8e84597bc59d1fe3d8504f87.tar.gz invidious-3be1c9261f12b44a8e84597bc59d1fe3d8504f87.tar.bz2 invidious-3be1c9261f12b44a8e84597bc59d1fe3d8504f87.zip | |
Fix sleep in pull_top_videos
Diffstat (limited to 'src/invidious.cr')
| -rw-r--r-- | src/invidious.cr | 3 |
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 |
