Remove some debugging.
This commit is contained in:
parent
9924094165
commit
6be67a1916
1 changed files with 0 additions and 8 deletions
|
@ -50,10 +50,6 @@ async def narinfo(req: Request) -> Response:
|
||||||
if ni is None:
|
if ni is None:
|
||||||
return Response(content="Not found", status_code=404)
|
return Response(content="Not found", status_code=404)
|
||||||
|
|
||||||
|
|
||||||
print(f"=== REMOTE {req.path_params['hash']} ===")
|
|
||||||
print(ni.dump())
|
|
||||||
print(f"=== REMOTE END ===")
|
|
||||||
return Response(content=ni.dump(), status_code=200, media_type="text/x-nix-narinfo")
|
return Response(content=ni.dump(), status_code=200, media_type="text/x-nix-narinfo")
|
||||||
|
|
||||||
@app.route("/local/{hash:str}.narinfo")
|
@app.route("/local/{hash:str}.narinfo")
|
||||||
|
@ -61,10 +57,6 @@ async def access_narinfo(req: Request) -> Response:
|
||||||
ni = await l_access.narinfo(req.path_params["hash"])
|
ni = await l_access.narinfo(req.path_params["hash"])
|
||||||
if ni is None:
|
if ni is None:
|
||||||
return Response(content="Not found", status_code=404)
|
return Response(content="Not found", status_code=404)
|
||||||
|
|
||||||
print(f"=== LOCAL {req.path_params['hash']} ===")
|
|
||||||
print(ni.dump())
|
|
||||||
print(f"=== LOCAL END ===")
|
|
||||||
return Response(content=ni.dump(), status_code=200, media_type="text/x-nix-narinfo")
|
return Response(content=ni.dump(), status_code=200, media_type="text/x-nix-narinfo")
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue