Speed up API requests be using a persistent connection, increase news fetch buffer time to 30 seconds from 10 seconds.

This commit is contained in:
2024-03-11 15:09:31 -05:00
parent 38e0de76df
commit d84c8321c5
3 changed files with 15 additions and 10 deletions

View File

@@ -83,7 +83,7 @@ class W3DHub
if Gosu.milliseconds >= @w3dhub_news_expires
@w3dhub_news = nil
@w3dhub_news_expires = Gosu.milliseconds + 10_000 # seconds
@w3dhub_news_expires = Gosu.milliseconds + 30_000 # seconds
@wd3hub_news_container.clear do
title I18n.t(:"games.fetching_news"), padding: 8