Skip to content
Permalink
Browse files

fix(grpc): fix grpc service

  • Loading branch information...
Larryjianfeng committed Jul 22, 2019
1 parent 6e6bbf8 commit 08a9a4e3863afde2dbcb74633c1648e92c47abb5
Showing with 10 additions and 0 deletions.
  1. +10 −0 gnes/service/grpc.py
@@ -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):

0 comments on commit 08a9a4e

Please sign in to comment.
You can’t perform that action at this time.