Skip to content

Commit 07a3791

Browse files
committed
fix: 忘记删掉测速了
1 parent cf8e9d0 commit 07a3791

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.1.0
1+
v1.1.1

core/cluster.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -597,12 +597,11 @@ def check_sign(hash: str, s: str, e: str):
597597
@app.get("/measure/{size}")
598598
async def _(config: web.ResponseConfiguration, size: int = 1, s: str = "", e: str = ""):
599599
if not check_sign(f"/measure/{size}", s, e):
600-
return web.Response(status_code=401)
600+
yield web.Response(status_code=401)
601601
return
602602
config.length = 1024 * 1024 * size
603-
#for _ in range(size):
604-
# yield b'\x00' * 1024 * 1024
605-
return web.RedirectResponse("https://node-36-156-121-26.speedtest.cn:51090/download?size=10485760&r=0.0917991197210346")
603+
for _ in range(size):
604+
yield b'\x00' * 1024 * 1024
606605
def empty_file(hash: str) -> File:
607606
return File(
608607
hash=hash,

0 commit comments

Comments
 (0)