File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 55
66from aiohttp .web import Response
77
8- from faust import web , web as _web
8+ from faust import web
99from faust .exceptions import ImproperlyConfigured
1010from faust .types import (
1111 TP ,
@@ -68,12 +68,12 @@ def setup_prometheus_sensors(
6868 app .monitor = PrometheusMonitor (metrics = faust_metrics )
6969
7070 @app .page (pattern )
71- async def metrics_handler (self : _web .View , request : _web .Request ) -> _web .Response :
71+ async def metrics_handler (self : web .View , request : web .Request ) -> web .Response :
7272 headers = {"Content-Type" : CONTENT_TYPE_LATEST }
7373
7474 return cast (
75- _web .Response ,
76- Response (body = generate_latest (REGISTRY ), headers = headers , status = 200 ),
75+ web .Response ,
76+ Response (body = generate_latest (registry ), headers = headers , status = 200 ),
7777 )
7878
7979
You can’t perform that action at this time.
0 commit comments