MCPcopy Create free account
hub / github.com/Tong89/smartNode / _submit_batch

Function _submit_batch

tests/load/test_stress_engine.py:98–104  ·  view source on GitHub ↗

顺序提交一批请求,收集所有返回结果。

(engine, payloads: List[dict])

Source from the content-addressed store, hash-verified

96
97
98def _submit_batch(engine, payloads: List[dict]) -> List[dict]:
99 """顺序提交一批请求,收集所有返回结果。"""
100 results = []
101 for payload in payloads:
102 result = engine.submit_request(dict(payload))
103 results.append(result)
104 return results
105
106
107def _submit_concurrent(engine, payload: dict, n_threads: int, per_thread: int):

Callers

nothing calls this directly

Calls 2

submit_requestMethod · 0.80
appendMethod · 0.80

Tested by

no test coverage detected