Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put hack in place for StreamETH to do 20 concurrent clips instead of 5 #2325

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

thomshutt
Copy link
Contributor

We don't have time / inclination to do the work to make this more generic

@thomshutt thomshutt requested a review from a team as a code owner November 7, 2024 12:51
Copy link

vercel bot commented Nov 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
livepeer-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 7, 2024 0:52am

if (processingClips.length >= MAX_PROCESSING_CLIPS && !clippingUser.admin) {
// Hack to let StreamETH have a higher clipping limit without having to do the work to put this on the User object
let maxProcessingClips = MAX_PROCESSING_CLIPS;
if (req.user.id == "05f04681-b600-4a9b-81ea-1f56e7871f04") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WDYT of checking with owner.id instead, so it's applied to the owner of the content itself and not the user owning the api key doing the request? I am fine with it either way as only admins are allowed to do cross-clips, for now

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah let's leave it for now then - we can hopefully roll this back after Devcon anyway

@thomshutt thomshutt merged commit 2bb3b0a into master Nov 11, 2024
8 checks passed
@thomshutt thomshutt deleted the streameth-clip-hack branch November 11, 2024 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants