修复实时查看

This commit is contained in:
junleea 2024-10-28 21:01:23 +08:00
parent 81e0c2a5bf
commit 9a234f50fb
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ func GetRealTimeImage(c *gin.Context) {
func subscribeAndHandleMessages(ws *websocket.Conn, device_id int) { func subscribeAndHandleMessages(ws *websocket.Conn, device_id int) {
ctx := context.Background() ctx := context.Background()
pubsub := worker.RedisClient.Subscribe(ctx, strconv.Itoa(device_id)+"_frames_channel") pubsub := worker.RedisClient.Subscribe(ctx, strconv.Itoa(device_id)+"_frames_msgs")
defer pubsub.Close() defer pubsub.Close()
ch := pubsub.Channel() ch := pubsub.Channel()
var check_cnt int var check_cnt int