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

fix: reduce request usage #1607

Merged
merged 4 commits into from Feb 25, 2020
Merged

fix: reduce request usage #1607

merged 4 commits into from Feb 25, 2020

Conversation

JustinBeckwith
Copy link
Contributor

@JustinBeckwith JustinBeckwith commented Feb 17, 2020

Request is now deprecated. This moves the sample over to using gaxios, along with other cleanup.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 17, 2020
Copy link
Contributor

@ace-n ace-n left a comment

Choose a reason for hiding this comment

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

LGTM other than a nit. 🙂

@@ -15,7 +15,7 @@
'use strict';

// [START functions_background_promise]
const requestPromiseNative = require('request-promise-native');
const {request} = require('gaxios');
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: does the leading G in gaxios stand for Google here?

(If so, perhaps it should be moved to the GoogleCloudPlatform org instead of a personal repo.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a Google owned module :) It lives in the googleapis org:
https://github.com/googleapis/gaxios/

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah - I was going off of the npm entry. Maybe we should update that? 🙂

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! googleapis/gaxios#239

@fhinkel fhinkel merged commit 89f5f29 into master Feb 25, 2020
@fhinkel fhinkel deleted the nor2 branch February 25, 2020 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants