update
This commit is contained in:
@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user