mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-07 10:56:49 +00:00
Apply suggestions from code review
Co-authored-by: Jean-Paul Calderone <exarkun@twistedmatrix.com>
This commit is contained in:
parent
e19aeb5aea
commit
4d4649f5c2
@ -368,7 +368,7 @@ class StorageClient(object):
|
||||
message_to_serialize: object = None,
|
||||
timeout: float = 60,
|
||||
**kwargs,
|
||||
) -> Deferred[IResponse]:
|
||||
) -> IResponse:
|
||||
"""
|
||||
Like ``treq.request()``, but with optional secrets that get translated
|
||||
into corresponding HTTP headers.
|
||||
|
@ -107,7 +107,7 @@ def _authorization_decorator(required_secrets):
|
||||
@wraps(f)
|
||||
def route(self, request, *args, **kwargs):
|
||||
with start_action(
|
||||
action_type="allmydata:storage:http-server:handle_request",
|
||||
action_type="allmydata:storage:http-server:handle-request",
|
||||
method=request.method,
|
||||
path=request.path,
|
||||
) as ctx:
|
||||
|
Loading…
x
Reference in New Issue
Block a user