Skip to content
Permalink
Browse files

fix(parser): add max_concurrency to client

  • Loading branch information...
hanxiao committed Sep 11, 2019
1 parent c988b32 commit 235d901a6eeaae5cd7d1f3d9e9148dded5c13169
Showing with 3 additions and 4 deletions.
  1. +3 −4 gnes/cli/parser.py
@@ -279,7 +279,7 @@ def set_frontend_parser(parser=None):
socket_out=SocketType.PUSH_BIND,
read_only=True)
parser.add_argument('--max_concurrency', type=int, default=10,
help='maximum concurrent client allowed')
help='maximum concurrent connections allowed')
return parser


@@ -289,9 +289,6 @@ def set_client_cli_parser(parser=None):
parser = set_base_parser()
_set_grpc_parser(parser)

parser.add_argument('--max_concurrency', type=int, default=10,
help='maximum concurrent client allowed')

group = parser.add_mutually_exclusive_group()

group.add_argument('--txt_file', type=argparse.FileType('r'),
@@ -313,6 +310,8 @@ def set_client_cli_parser(parser=None):
parser.add_argument('--start_doc_id', type=int,
default=0,
help='the start number of doc id')
parser.add_argument('--max_concurrency', type=int, default=10,
help='maximum concurrent connections allowed')
return parser


0 comments on commit 235d901

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