Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

fix: Register error event handler immediately. #156

Merged
merged 4 commits into from
Sep 11, 2018

Conversation

stephenplusplus
Copy link
Contributor

Fixes #62

Currently, when a user calls streamingRecognize(), we wait to receive incoming data before registering an error handler on the gRPC request stream. This can be an issue if the user doesn't pipe any data until the request deadline is exceeded, resulting in a thrown error. Now, the error will be returned to the user's error handler.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 29, 2018
@ghost ghost assigned stephenplusplus Aug 29, 2018
@codecov
Copy link

codecov bot commented Sep 10, 2018

Codecov Report

Merging #156 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #156   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           2      2           
  Lines          34     32    -2     
=====================================
- Hits           34     32    -2
Impacted Files Coverage Δ
src/helpers.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5760658...00824a5. Read the comment docs.

@ghost ghost assigned JustinBeckwith Sep 10, 2018
@JustinBeckwith
Copy link
Contributor

@stephenplusplus looks like this just needs to have lint run on it :)

@stephenplusplus stephenplusplus merged commit 250cea9 into googleapis:master Sep 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants