mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-05 10:49:24 +02:00
refactor(struct): replace bluebird with native Promise
This commit is contained in:
parent
1ee03486a6
commit
7d5445aeae
8 changed files with 1357 additions and 1336 deletions
|
@ -66,7 +66,9 @@ export async function deserializeLogMessage(stream: StructAsyncDeserializeStream
|
|||
await stream.read(entry.headerSize - LoggerEntry.size);
|
||||
const priority = (await stream.read(1))[0] as LogPriority;
|
||||
const payload = await stream.read(entry.payloadSize - 1);
|
||||
return { ...entry, priority, payload };
|
||||
(entry as any).priority = priority;
|
||||
(entry as any).payload = payload;
|
||||
return entry as LogMessage;
|
||||
}
|
||||
|
||||
export interface LogSize {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue