-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix publishing events when broker is deactivated
The default settings are still active at import time. Running `publish_domain_event` would use the default broker connection settings even if `DOMAIN_EVENT_BROKER` was set to `None`. In the transport calls, set the connection settings at runtime and don't use the configured broker as an argument's default. This also fixes the type annotations to indicate that `connection_settings` may be `None`.
- Loading branch information
Pankrat
committed
Mar 22, 2021
1 parent
7d100dc
commit e2f9d1d
Showing
2 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters