Skip to content

Commit 7e30af2

Browse files
committed
Refactored via pre-commit
1 parent 9c77959 commit 7e30af2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

taskiq/middlewares/prometheus_middleware.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ def startup(self) -> None:
8484
This function starts prometheus server.
8585
It starts it only in case if it's a worker process.
8686
"""
87-
from prometheus_client import CollectorRegistry, start_http_server # noqa: PLC0415
87+
from prometheus_client import ( # noqa: PLC0415
88+
CollectorRegistry,
89+
start_http_server,
90+
)
8891
from prometheus_client.multiprocess import ( # noqa: PLC0415
8992
MultiProcessCollector,
9093
)

0 commit comments

Comments
 (0)