Skip to content

Commit 8cea87c

Browse files
authored
Merge pull request #56 from modern-python/required-app-faststream
make app optional and remove broker for faststream bootstrapper
2 parents ae56b54 + 414b3ab commit 8cea87c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lite_bootstrap/bootstrappers/faststream_bootstrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def __init__(
4949

5050
@dataclasses.dataclass(kw_only=True, slots=True, frozen=True)
5151
class FastStreamConfig(HealthChecksConfig, LoggingConfig, OpentelemetryConfig, PrometheusConfig, SentryConfig):
52-
application: "AsgiFastStream"
52+
application: "AsgiFastStream" = dataclasses.field(default_factory=lambda: AsgiFastStream())
5353
opentelemetry_middleware_cls: type[FastStreamTelemetryMiddlewareProtocol] | None = None
5454
prometheus_middleware_cls: type[FastStreamPrometheusMiddlewareProtocol] | None = None
5555
health_checks_additional_checker: typing.Callable[[], typing.Coroutine[bool, typing.Any, typing.Any]] | None = None

0 commit comments

Comments
 (0)