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

Commit

Permalink
fix(grpc): fix grpc service
Browse files Browse the repository at this point in the history
  • Loading branch information
Larryjianfeng committed Jul 22, 2019
1 parent 6e6bbf8 commit 08a9a4e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gnes/service/grpc.py
Expand Up @@ -129,6 +129,16 @@ def Index(self, request, context):
def Search(self, request, context):
return self._Call(request, context)

def TrainStream(self, request_iterator, context):
for request in request_iterator:
ret = self._Call(request, context)
return ret

def IndexStream(self, request_iterator, context):
for request in request_iterator:
ret = self._Call(request, context)
return ret


class GRPCFrontend:
def __init__(self, args):
Expand Down

0 comments on commit 08a9a4e

Please sign in to comment.