feat: fix
This commit is contained in:
3
main.py
3
main.py
@@ -21,7 +21,8 @@ origins = [
|
|||||||
async def lifespan(app: FastAPI):
|
async def lifespan(app: FastAPI):
|
||||||
try:
|
try:
|
||||||
await init_producer()
|
await init_producer()
|
||||||
await producer.start()
|
if producer:
|
||||||
|
await producer.start()
|
||||||
except KafkaConnectionError as e:
|
except KafkaConnectionError as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user