fix
This commit is contained in:
1 parent
76b404cdd8
commit
21b228552d
5 files changed
+29
-25
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user