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

Add CPU option. Rip out deprecated apiVersion #1077

Merged
merged 3 commits into from Apr 15, 2022
Merged

Add CPU option. Rip out deprecated apiVersion #1077

merged 3 commits into from Apr 15, 2022

Conversation

inlined
Copy link
Member

@inlined inlined commented Apr 15, 2022

Also fixes a couple of build errors I was getting in identity.ts

@inlined inlined requested a review from colerogers April 15, 2022 02:14
import * as admin from 'firebase-admin';
import fetch from 'node-fetch';
Copy link
Contributor

Choose a reason for hiding this comment

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

q: do you have some eslint locally that automatically formats this? (or is it something you did manually)

Copy link
Member Author

Choose a reason for hiding this comment

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

npm run format:fix && npm run lint:fix

if (
typeof val === 'function' &&
val['__endpoint'] &&
typeof val['__endpoint'] === 'object'
(val as any).__endpoint &&
Copy link
Contributor

Choose a reason for hiding this comment

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

nit* is (val as any) required here? I'd guess it's already any based on L69.

Copy link
Member Author

Choose a reason for hiding this comment

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

You're right. I was doing this manually and then used the any cast above. Will remove.


/**
* Fractional number of CPUs to allocate to a function.
* defaults to 1 for functions with <= 2GB RAM and increases for larger memory sizes.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* defaults to 1 for functions with <= 2GB RAM and increases for larger memory sizes.
* Defaults to 1 for functions with <= 2GB RAM and increases for larger memory sizes.

@inlined inlined merged commit 78dae73 into master Apr 15, 2022
@inlined inlined deleted the inlined.cpu branch April 15, 2022 17:21
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.

None yet

2 participants