This commit is contained in:
boufni95 2025-01-29 16:31:33 +00:00
parent 21d6ed1966
commit 02a522a188

View file

@ -89,7 +89,8 @@ export default class webRTC {
return return
} }
const res = await this.storage.metricsEventStorage.LoadRawMetricsFile(j.app_id, j.metrics_name, j.page) const res = await this.storage.metricsEventStorage.LoadRawMetricsFile(j.app_id, j.metrics_name, j.page)
const id = j.request_id || Math.floor(Math.random() * 2_000_000_000) const id = j.request_id || Math.floor(Math.random() * 100_000_000)
console.log("processing req:", j, "id:", id)
let i = 0 let i = 0
const packets: Buffer[] = [] const packets: Buffer[] = []
while (i < res.length) { while (i < res.length) {