获取当前帧bytes,垃圾回收
This commit is contained in:
parent
2040232735
commit
6bdaeaf017
|
|
@ -11,6 +11,7 @@ import (
|
|||
"io"
|
||||
"log"
|
||||
"net/http"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"time"
|
||||
)
|
||||
|
|
@ -230,4 +231,7 @@ func subscribeAndHandleMessagesV3(ws *websocket.Conn, deviceId int) {
|
|||
worker.SetRedisWithExpire(strconv.Itoa(deviceId)+"_is_play", "1", time.Minute*5)
|
||||
log.Printf("device_id: %d has set is_play to 0", deviceId)
|
||||
}
|
||||
|
||||
//垃圾回收
|
||||
runtime.GC()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue