fix scripts folder
This commit is contained in:
parent
db675ba04a
commit
d23c80893d
@ -49,11 +49,10 @@ def main():
|
|||||||
parser.add_argument("--server-pid", type=int)
|
parser.add_argument("--server-pid", type=int)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
executor = ThreadPoolExecutor(max_workers=len(args.port))
|
executor = ThreadPoolExecutor(max_workers=len(args.port))
|
||||||
futures = []
|
futures = [
|
||||||
for p in args.port:
|
executor.submit(_wait_for_port, p, args.server_pid, args.timeout)
|
||||||
futures.append(
|
for p in args.port
|
||||||
executor.submit(_wait_for_port, p, args.server_pid, args.timeout)
|
]
|
||||||
)
|
|
||||||
for f in as_completed(futures):
|
for f in as_completed(futures):
|
||||||
ok, msg = f.result()
|
ok, msg = f.result()
|
||||||
if ok:
|
if ok:
|
||||||
|
Loading…
Reference in New Issue
Block a user