Skip to content
Permalink
Browse files

fix(service): fix bug grpc

  • Loading branch information...
Larryjianfeng committed Jul 15, 2019
1 parent 09e68da commit dca4b03b5d610e164c17be8ddc4d2426ff8bd0d6
Showing with 2 additions and 2 deletions.
  1. +2 −2 gnes/service/grpc.py
@@ -135,8 +135,8 @@ def __init__(self, args):
self.logger = set_logger(self.__class__.__name__, args.verbose)
self.server = grpc.server(
futures.ThreadPoolExecutor(max_workers=args.max_concurrency),
options=[('grpc.max_send_message_length', args.max_send_size*1024*1024,
'grpc.max_receive_message_length', args.max_receive_size*1024*1024)])
options=[('grpc.max_send_message_length', args.max_send_size*1024*1024),
('grpc.max_receive_message_length', args.max_receive_size*1024*1024)])
self.logger.info('start a grpc server with %d workers' % args.max_concurrency)
gnes_pb2_grpc.add_GnesRPCServicer_to_server(GNESServicer(args), self.server)

0 comments on commit dca4b03

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