Skip to content

Commit ea86eab

Browse files
committed
set default for API response timeout
1 parent ba76b62 commit ea86eab

File tree

1 file changed

+1
-1
lines changed
  • tools/src/main/python/opengrok_tools

1 file changed

+1
-1
lines changed

tools/src/main/python/opengrok_tools/sync.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def main():
152152
parser.add_argument('--nolock', action='store_false', default=True,
153153
help='do not acquire lock that prevents multiple '
154154
'instances from running')
155-
parser.add_argument('--api_timeout', type=int,
155+
parser.add_argument('--api_timeout', type=int, default=3,
156156
help='Set response timeout in seconds'
157157
'for RESTful API calls')
158158
add_http_headers(parser)

0 commit comments

Comments
 (0)