Skip to content

Commit

Permalink
Revert "refactor(streamingRequest): wait 10 years for assets to load"
Browse files Browse the repository at this point in the history
This reverts commit 03db59c.
This was sarcasm btw. I still hate you people.
  • Loading branch information
thelindat committed Aug 13, 2024
1 parent 6b12831 commit 133a990
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions imports/streamingRequest/client.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
local tenYears = 3.1536e+11 -- because fucktards keep complaining

---@async
---@generic T : string | number
---@param request function
Expand All @@ -19,7 +17,7 @@ function lib.streamingRequest(request, hasLoaded, assetType, asset, timeout, ...

return lib.waitFor(function()
if hasLoaded(asset) then return asset end
end, ("failed to load %s '%s' - this is likely caused by unreleased assets"):format(assetType, asset), timeout or tenYears)
end, ("failed to load %s '%s' - this is likely caused by unreleased assets"):format(assetType, asset), timeout or 10000)
end

return lib.streamingRequest

0 comments on commit 133a990

Please sign in to comment.