-
Notifications
You must be signed in to change notification settings - Fork 25
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
WIP: switch to using backblaze for images #948
Conversation
✅ Deploy Preview for mirlo ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
overshootDeringing: true, // required mozjpeg support | ||
}, | ||
}, | ||
// jpeg: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I'm getting rid of these because they're not getting used in the UI, and I can't quite imagine why they'd get used, and we can always generate them in the future?
// seems to not like it when we bombard it with files all in one go, | ||
// so when we do Promise.all at the end of this we're sending all the | ||
// files and it just doesn't process anything but the first one. | ||
await sleep((i + 1) * (j + 1) * 1500); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having to sleep in these promises because if I don't then backblaze seems to get overwhelmed and returns an error 408
// FIXME: someone who's better at devops than me will have to figure out | ||
// how we can serve these directly from minio | ||
try { | ||
stat = await minioClient.statObject(req.params.bucket, req.params.filename); | ||
backblazeStat = await backblazeClient.send( |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This is a punt that switches to using backblaze for images