We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ae56b54 + 414b3ab commit 8cea87cCopy full SHA for 8cea87c
1 file changed
lite_bootstrap/bootstrappers/faststream_bootstrapper.py
@@ -49,7 +49,7 @@ def __init__(
49
50
@dataclasses.dataclass(kw_only=True, slots=True, frozen=True)
51
class FastStreamConfig(HealthChecksConfig, LoggingConfig, OpentelemetryConfig, PrometheusConfig, SentryConfig):
52
- application: "AsgiFastStream"
+ application: "AsgiFastStream" = dataclasses.field(default_factory=lambda: AsgiFastStream())
53
opentelemetry_middleware_cls: type[FastStreamTelemetryMiddlewareProtocol] | None = None
54
prometheus_middleware_cls: type[FastStreamPrometheusMiddlewareProtocol] | None = None
55
health_checks_additional_checker: typing.Callable[[], typing.Coroutine[bool, typing.Any, typing.Any]] | None = None
0 commit comments