Skip to content

Commit

Permalink
Add some buffer for scheduled stream search release_time (#3060)
Browse files Browse the repository at this point in the history
Co-authored-by: miko <[email protected]>
  • Loading branch information
keikari and miko authored Feb 19, 2024
1 parent eb19190 commit b3e18b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions ui/component/upcomingClaims/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ const selectOptions = createSelector(
not_channel_ids: mutedAndBlockedIds,
not_tags: CsOptHelper.not_tags(),
order_by: ['^release_time'],
release_time: [
`>${moment().subtract(LIVESTREAM_UPCOMING_BUFFER, 'minutes').startOf('minute').unix()}`,
`>${Math.floor(moment().startOf('minute').unix())}`,
],
release_time: [`>${moment().subtract(LIVESTREAM_UPCOMING_BUFFER, 'minutes').startOf('minute').unix()}`],
...(isLivestream ? { has_no_source: true } : { has_source: true }),
...(isLivestream && limitPerChannel ? { limit_claims_per_channel: limitPerChannel } : {}),
};
Expand Down
2 changes: 1 addition & 1 deletion ui/constants/livestream.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ export const LIVESTREAM_STATUS_CHECK_INTERVAL = 45 * 1000;
export const LIVESTREAM_STATUS_CHECK_INTERVAL_SOON = 15 * 1000;
export const LIVESTREAM_STARTS_SOON_BUFFER = 15;
export const LIVESTREAM_STARTED_RECENTLY_BUFFER = 15;
export const LIVESTREAM_UPCOMING_BUFFER = 35;
export const LIVESTREAM_UPCOMING_BUFFER = 5;

export const FETCH_ACTIVE_LIVESTREAMS_MIN_INTERVAL_MS = 5 * 60 * 1000;

0 comments on commit b3e18b8

Please sign in to comment.