Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
Pliner committed Jan 9, 2025
1 parent 56fbd92 commit 59cd6c8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions aio_request/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from .response_classifier import ResponseClassifier, ResponseVerdict
from .transport import Transport


try:
import prometheus_client as prom

Expand Down Expand Up @@ -51,9 +50,7 @@
),
)

def capture_metrics(
*, endpoint: yarl.URL, request: Request, status: int, started_at: float
) -> None:
def capture_metrics(*, endpoint: yarl.URL, request: Request, status: int, started_at: float) -> None:
label_values = (
endpoint.human_repr(),
request.method,
Expand All @@ -65,11 +62,10 @@ def capture_metrics(

except ImportError:

def capture_metrics(
*, endpoint: yarl.URL, request: Request, status: int, started_at: float
) -> None:
def capture_metrics(*, endpoint: yarl.URL, request: Request, status: int, started_at: float) -> None:
pass


NextModuleFunc = collections.abc.Callable[
[yarl.URL, Request, Deadline, Priority], collections.abc.Awaitable[ClosableResponse]
]
Expand Down

0 comments on commit 59cd6c8

Please sign in to comment.