-
Notifications
You must be signed in to change notification settings - Fork 50
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
Setting deadlines/timeouts on individual calls #16
Comments
Yes, this is possible and I think this will be a good addition. I will add an option parameter to individual method calls and also to the DgraphClientStub contructor (https://grpc.io/grpc/node/grpc.Client.html). |
Thanks @gpahal! |
I've added the basic functionality in v1.0.4-beta.3. It's available with the next tag: npm install dgraph-js@next grpc --save You can pass an additional argument of type |
Done in v1.0.4 |
Would it be possible to add support for setting deadlines on individual calls with the
dgraph-js
client?Perhaps the calls could take an optional
options
parameter? e.g.As far as I can tell, the Dgraph Go client supports enforcing deadlines on individual calls, and from briefly looking at the Node.js gRPC implementation, it seems to support
CallOptions
with adeadline
property too. So it should hopefully be just a matter of threading it through via the wrapper functions?The text was updated successfully, but these errors were encountered: