This commit is contained in:
手瓜一十雪 committed 2024-11-14 11:46:37 +08:00
1 parent 76b404cdd8
commit 21b228552d
5 files changed
+29 -25

No files matched your search

+3 -3
View File
@@ -33,7 +33,7 @@ export interface PacketHighwaySig {
}
export class PacketHighwayContext {
private context: PacketContext;
private readonly context: PacketContext;
protected sig: PacketHighwaySig;
protected logger: PacketLogger;
protected hwClient: PacketHighwayClient;
@@ -223,7 +223,7 @@ export class PacketHighwayContext {
msgInfoBody: preRespData.upload.msgInfo.msgInfoBody,
blockSize: BlockSize,
hash: {
fileSha1: await calculateSha1StreamBytes(video.filePath!)
fileSha1: await calculateSha1StreamBytes(video.filePath)
}
});
await this.hwClient.upload(
@@ -288,7 +288,7 @@ export class PacketHighwayContext {
msgInfoBody: preRespData.upload.msgInfo.msgInfoBody,
blockSize: BlockSize,
hash: {
fileSha1: await calculateSha1StreamBytes(video.filePath!)
fileSha1: await calculateSha1StreamBytes(video.filePath)
}
});
await this.hwClient.upload(