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

Commit

Permalink
fix(parser): add max_concurrency to client
Browse files Browse the repository at this point in the history
  • Loading branch information
hanhxiao committed Sep 11, 2019
1 parent c988b32 commit 235d901
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions gnes/cli/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand All @@ -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'),
Expand All @@ -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


Expand Down

0 comments on commit 235d901

Please sign in to comment.