(instanceUuid: string, text: string)
| 25 | |
| 26 | // output stream record to buffer |
| 27 | async function outputLog(instanceUuid: string, text: string) { |
| 28 | const buf = (buffer.get(instanceUuid) ?? "") + text; |
| 29 | if (buf.length > 1024 * 1024) buffer.set(instanceUuid, ""); |
| 30 | buffer.set(instanceUuid, buf ?? null); |
| 31 | } |
| 32 | |
| 33 | // instance output stream event |
| 34 | // By default, it is added to the data cache to control the sending rate to ensure its stability |
no test coverage detected