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

Commit

Permalink
fix(service): fix bug grpc
Browse files Browse the repository at this point in the history
  • Loading branch information
Larryjianfeng committed Jul 15, 2019
1 parent 09e68da commit dca4b03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gnes/service/grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit dca4b03

Please sign in to comment.