Skip to content

Commit

Permalink
colossus: read-chunk use async version
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaamani committed Jan 22, 2024
1 parent 3e836f4 commit 94504ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage-node/src/services/helpers/fileInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export async function getFileInfo(fullPath: string): Promise<FileInfo> {
ext: 'bin',
}

const buffer = readChunk.sync(fullPath, 0, MINIMUM_FILE_CHUNK)
const buffer = await readChunk(fullPath, 0, MINIMUM_FILE_CHUNK)
const fileType = await FileType.fromBuffer(buffer)
const { size } = await fsPromises.stat(fullPath)

Expand Down

0 comments on commit 94504ec

Please sign in to comment.