Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
b2b6a9eb
Commit
b2b6a9eb
authored
8 years ago
by
Nathaniel Manista
Browse files
Options
Downloads
Patches
Plain Diff
ServicerContext methods doc string fix and tweak
ServicerContext.set_code takes a (grpc.)StatusCode, not an integer.
parent
edcd4916
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/python/grpcio/grpc/__init__.py
+4
-4
4 additions, 4 deletions
src/python/grpcio/grpc/__init__.py
with
4 additions
and
4 deletions
src/python/grpcio/grpc/__init__.py
+
4
−
4
View file @
b2b6a9eb
...
...
@@ -767,8 +767,8 @@ class ServicerContext(six.with_metaclass(abc.ABCMeta, RpcContext)):
gRPC runtime to determine the status code of the RPC.
Args:
code:
The integer s
tatus
c
ode
of the RPC
to be transmitted to the
invocation si
de of the RPC.
code:
A S
tatus
C
ode
value
to be transmitted to the
invocation side of the
RPC as the status co
de of the RPC.
"""
raise
NotImplementedError
()
...
...
@@ -780,8 +780,8 @@ class ServicerContext(six.with_metaclass(abc.ABCMeta, RpcContext)):
details to transmit.
Args:
details:
The details string of the RPC to be transmitted to
the
invocation side
of the RPC.
details:
A string to be transmitted to the invocation side of the RPC as
the
status details
of the RPC.
"""
raise
NotImplementedError
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment