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