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

[Storage] Fix storage-blob samples as per the api updates #3281

Merged

Conversation

HarshaNalluru
Copy link
Member

No description provided.

@HarshaNalluru HarshaNalluru added Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files) labels May 30, 2019
@HarshaNalluru HarshaNalluru self-assigned this May 30, 2019
@jeremymeng
Copy link
Contributor

Not sure how we missed fixing these. I had to do the same in other PR as well.


// Parallel uploading with uploadFileToBlockBlob in Node.js runtime
// uploadFileToBlockBlob is only available in Node.js
await uploadFileToBlockBlob(localFilePath, blockBlobClient, {
blockSize: 4 * 1024 * 1024, // 4MB block size
parallelism: 20, // 20 concurrency
progress: ev => console.log(ev)
progress: (ev) => console.log(ev)
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe disable the auto-fixing/formatting of the linting extension? that way formatting changes won't be in PRs.

Copy link
Member Author

Choose a reason for hiding this comment

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

Please bear with this until @KarishmaGhiya standardizes eslint ☀

@HarshaNalluru HarshaNalluru changed the title [Storage] Fix storage-file samples as per the api updates [Storage] Fix storage-blob samples as per the api updates May 30, 2019
@HarshaNalluru
Copy link
Member Author

HarshaNalluru commented May 30, 2019

Not sure how we missed fixing these. I had to do the same in other PR as well.

The other packages seem to have from* -> create fix already.

@HarshaNalluru HarshaNalluru merged commit 81c4cd6 into Azure:feature/storage May 30, 2019
@HarshaNalluru HarshaNalluru deleted the FixStorageFileSamples branch May 30, 2019 21:15
@@ -108,7 +94,7 @@ async function main() {
async function streamToString(readableStream: NodeJS.ReadableStream) {
Copy link
Member

Choose a reason for hiding this comment

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

I remembered helper methods like toStream, toStream will be integrated into SDK right? @jeremymeng

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Client This issue points to a problem in the data-plane of the library. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants