File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -32,4 +32,5 @@ OTP_LIFETIME=10
3232API_GATEWAY_PUBLIC_KEY = xxxxxxxxxxxxxxxxxxxxxxxx
3333API_KEY_EXPIRES_AT = 2
3434
35- RABBITMQ_HOST = localhost
35+ # amqp://username:password@host[:port]/
36+ RABBITMQ_URL = amqp://guest:guest@localhost:5672/
Original file line number Diff line number Diff line change 1616
1717from src .env import rabbitmq_config
1818
19- broker = RabbitBroker (host = rabbitmq_config ["host " ])
19+ broker = RabbitBroker (rabbitmq_config ["url " ])
2020
2121
2222os .environ .setdefault ("DJANGO_SETTINGS_MODULE" , "src.config.settings" )
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class OTP(TypedDict):
5151
5252
5353class RabbitMQ (TypedDict ):
54- host : str
54+ url : str
5555
5656
5757env = Env ()
@@ -109,7 +109,7 @@ class RabbitMQ(TypedDict):
109109
110110otp : OTP = {"lifetime" : get_env_int ("OTP_LIFETIME" )}
111111
112- rabbitmq_config : RabbitMQ = {"host " : get_env_str ("RABBITMQ_HOST " )}
112+ rabbitmq_config : RabbitMQ = {"url " : get_env_str ("RABBITMQ_URL " )}
113113
114114
115115__all__ = [
You can’t perform that action at this time.
0 commit comments