Apply suggestions from code review

Co-authored-by: Jean-Paul Calderone <exarkun@twistedmatrix.com>
This commit is contained in:
Itamar Turner-Trauring 2023-04-10 11:28:26 -04:00 committed by GitHub
parent e19aeb5aea
commit 4d4649f5c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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: