mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-23 23:02:25 +00:00
Docstring.
This commit is contained in:
parent
ffe2e97739
commit
341a32708b
@ -309,6 +309,11 @@ class TestApp(object):
|
|||||||
@_authorized_route(_app, set(), "/read_body", methods=["POST"])
|
@_authorized_route(_app, set(), "/read_body", methods=["POST"])
|
||||||
@async_to_deferred
|
@async_to_deferred
|
||||||
async def read_body(self, request, authorization):
|
async def read_body(self, request, authorization):
|
||||||
|
"""
|
||||||
|
Accept an advise_corrupt_share message, return the reason.
|
||||||
|
|
||||||
|
I.e. exercise codepaths used for reading CBOR from the body.
|
||||||
|
"""
|
||||||
data = await read_encoded(
|
data = await read_encoded(
|
||||||
self.clock, request, SERVER_SCHEMAS["advise_corrupt_share"]
|
self.clock, request, SERVER_SCHEMAS["advise_corrupt_share"]
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user