This commit is contained in:
quantulr
2024-01-31 09:18:18 +08:00
parent fca55c5cb8
commit 7019d231e2
4 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ app = FastAPI()
async def add_stream(data: dict):
redis = await aioredis.Redis(host="127.0.0.1", port=6379)
redis = await aioredis.Redis(host="127.0.0.1", port=7019, password="SMHdFrlK")
await redis.lpush("hik-sub-event", json.dumps(data))
await redis.close()